doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

Document missing classes

Open kocsismate opened this issue 2 years ago • 17 comments

Currently, the following internal classes are not yet documented:

  • [x] SensitiveParameterValue (#2165)
  • [x] ClosedGeneratorException (#3065/#2997)
  • [x] com_safearray_proxy (#3066)
  • [x] DOMNameSpaceNode (#3060)
  • [x] LibXMLError (#3063)
  • [x] PDORow (#3059)
  • [x] #3074
  • [x] SQLite3Exception (#3079)

The following internal classes are going to be undocumented as soon as PHP 8.4 is released:

  • [x] Dom\AdjacentPosition
  • [ ] Dom\DocumentType
  • [x] Dom\CDATASection
  • [ ] Dom\Comment
  • [x] Dom\ParentNode
  • [x] Dom\ChildNode
  • [ ] Dom\Node
  • [x] Dom\NameSpaceInfo
  • [ ] Dom\DocumentFragment
  • [ ] Dom\NodeList
  • [x] Dom\CharacterData
  • [x] Dom\Attr
  • [ ] Dom\Element
  • [x] Dom\DOMException
  • [x] Dom\Text
  • [ ] Dom\NamedNodeMap
  • [x] Dom\Entity
  • [x] Dom\EntityReference
  • [x] Dom\Notation
  • [ ] Dom\ProcessingInstruction
  • [ ] Dom\XPath
  • [ ] Dom\Document
  • [ ] Dom\HTMLDocument
  • [ ] Dom\XMLDocument
  • [ ] ReflectionConstant

kocsismate avatar Jan 10 '23 07:01 kocsismate

Yay, com_safearray_proxy! I'll try to figure out its details.

Maybe @TimWolla wants to tackle SensitiveParameterValue?

cmb69 avatar Jan 10 '23 13:01 cmb69

Maybe @TimWolla wants to tackle SensitiveParameterValue?

I can write the description, but I need someone more experienced to bootstrap the docs for me. I've tried php doc-base/scripts/docgen/docgen.php -c SensitiveParameterValue, but that result is vastly incomplete (missing final on the class, missing properties, …).

TimWolla avatar Jan 10 '23 18:01 TimWolla

@TimWolla as soon aa docgen created the file, you can run gen_stub.php on it (with --replace-classsynopses) and it will fix the signature.

kocsismate avatar Jan 10 '23 22:01 kocsismate

I've tried php build/gen_stub.php --replace-classsynopses ../phpdoc/en/language/predefined/, but that did not do anything. Am I holding it wrong?

The docgen results are:

$ g d HEAD^..HEAD --stat
 language/predefined/interfaces.xml                        |  1 +
 language/predefined/sensitiveparametervalue.xml           | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/sensitiveparametervalue/construct.xml | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/sensitiveparametervalue/debuginfo.xml | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/sensitiveparametervalue/getvalue.xml  | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 language/predefined/versions.xml                          |  4 ++++
 6 files changed, 249 insertions(+)

TimWolla avatar Jan 10 '23 22:01 TimWolla

@TimWolla yes, you are missing a parameter: after the --replace.... You need the stub path(s) in php-src. And the very last parameter is for the doc-en path.

kocsismate avatar Jan 10 '23 22:01 kocsismate

Thanks, that did something.

TimWolla avatar Jan 10 '23 22:01 TimWolla

Currently, the following internal classes are not yet documented:

  • [ ] LibXMLError

LibXMLError is already documented as libXMLError. Is that OK or should one of those be changed to match the spelling of the other?

haszi avatar Jan 02 '24 21:01 haszi

Currently, the following internal classes are not yet documented:

  • [ ] LibXMLError

LibXMLError is already documented as libXMLError. Is that OK or should one of those be changed to match the spelling of the other?

We should fix the name in the docs to match what the stubs is, which is LibXMLError

Girgias avatar Jan 03 '24 12:01 Girgias

LibXMLError is already documented as libXMLError.

Thanks for the finding! I've just filed https://github.com/php/doc-en/pull/3063 to fix the issue with the spelling.

kocsismate avatar Jan 03 '24 23:01 kocsismate

All missing classes have been documented :fireworks:

Girgias avatar Jan 05 '24 17:01 Girgias

Sorry, I have to reopen the issue as in the meanwhile (since PHP 8.2) a few other newly added classes became undocumented.

kocsismate avatar Jan 06 '24 12:01 kocsismate

few other newly added classes became undocumented.

I would write the docs for IntervalBoundary, but that has the problem that it's the first native enum and I believe PHD cannot yet do enums.

TimWolla avatar Jan 06 '24 13:01 TimWolla

I would write the docs for IntervalBoundary, but that has the problem that it's the first native enum and I believe PHD cannot yet do enums.

Uhh, that's a problem indeed. Then I'll try to implement it both at gen_stub.php's and phd's side...

kocsismate avatar Jan 06 '24 13:01 kocsismate

I would write the docs for IntervalBoundary, but that has the problem that it's the first native enum and I believe PHD cannot yet do enums.

Uhh, that's a problem indeed. Then I'll try to implement it both at gen_stub.php's and phd's side...

The issue is that we are using an outdated version of DocBooks, and the new enum synopsis tag is only available in the newest prerelease of Docbook 5.2.

When I get back to the UK next week I will try to finalize the migrations for the markup of classes in the current documentations so that one can update the DocBook version.

Girgias avatar Jan 06 '24 13:01 Girgias

When I get back to the UK next week I will try to finalize the migrations for the markup of classes in the current documentations so that one can update the DocBook version.

Ah, I completely forgot that you have already been working on this topic. Then I'll leave it up to you to fix phd. :) And I can provide a PR for gen_stub.php if needed.

kocsismate avatar Jan 06 '24 13:01 kocsismate

What's the status with enum rendering?

TimWolla avatar Apr 06 '24 21:04 TimWolla

I'm going to work on this again now, as I've given up on trying to not give huge amount of work to already über outdated translations.

Girgias avatar Apr 16 '24 09:04 Girgias