Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify XSD to support advanced argument definitions #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simPod
Copy link

@simPod simPod commented Mar 7, 2020

@salathe
Copy link
Owner

salathe commented Mar 7, 2020

DocBook already has an attribute for indicating whether a methodparam is repeatable or not, namely the rep attribute. Ref: https://tdg.docbook.org/tdg/4.5/methodparam.html

@simPod
Copy link
Author

simPod commented Mar 29, 2020

@salathe thanks, though it looks like it can't be accessed in formatting the actual parameter within PHD. (format_methodparam_parameter())

The rep attribute is not used by phd.

In php-doc it is used like this:

<methodparam choice="opt" rep="repeat"><type>mixed</type><parameter role="reference">args</parameter></methodparam>

as you can see the rep attr is associated with <methodparam> but actually needed for <parameter> to be able to render ...$paramname

we would need something like this

<methodparam choice="opt"><type>mixed</type><parameter role="reference" rep="repeat">args</parameter></methodparam>

WDYT?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants