Hannes Magnusson wrote:

If you believe <property> would be the appropriate markup for it then
we can implement it in PhD without ASAP.
How do you want it to work?
To link to class variables:
<property>classname->variablename</property> to reference class
variable and <property>classname::variablename</property> to reference
static variable (::$varname and ::varname would both generate <a
href="...">classname::$varname</a> markup)?

That sounds about right.

In the markup I'd write:

<property>mysqli->affected_rows</property>

and this would generate HTML along the lines of:

<a href="mysqli.affected_rows.html" class="property">$mysqli->affected_rows</a>

Note: there is no '$' specified in the XML markup, but one is generated for the HTML output as this is how the PHP code would be written for a property.

For static variables (of which I don't think I've found an example yet) it would look like:

<property>mysqli::varname</property>

and it would generate HTML like:

<a href="mysqli.varname.html" class="property">mysqli::$varname</a>

again, as that's how the PHP code would look (for static vars).

So that's basically the same as what you said (with the small addition of the auto-generated '$' in the output of the first case).

Does that look OK?

Thanks,
Tony

Reply via email to