On Thu, Oct 23, 2008 at 10:09, Anthony Bedford <[EMAIL PROTECTED]> wrote: > Hannes Magnusson wrote: >>>> >>>> I don't think we ever reference class variables anywhere in the >>>> current documentations except for on the "class reference pages" (such >>>> as http://no2.php.net/manual/en/class.xmlreader.php). >>> >>> That uses XML such as: >>> >>> <varname >>> linkend="xmlreader.props.attributecount">attributeCount</varname> >>> >>> However, when I try that the HTML generated is: >>> >>> <var class="varname">$mysqli->affected_rows</var> >>> >>> Which doesn't seem quite right - it's not a live link anyway. >> >> Right, which is what I meant. We don't have such thing because we have >> never had use for it as class properties have never been referenced to >> except on the class reference page. > > Ah OK, I thought this was a feature that was already supported. I hadn't
As you can see in the markup the linkends are hardcoded, which isn't what we want. It is hardcoded because we had no use for making it automatic as the properties are never mentioned outside of that page, so creating a system to automatically link <varname>XMLreader->attributeCount</varname> to "class.xmlreader.php#xmlreader.props.attributecount" was just a useless feature at the time. > noticed the 'http://no2.php.net' bit - I'm guessing that is some kind of > testing site. No no. no2.php.net is just a normal mirror (we have ~120 of them, xx.php.net and xx2.php.net...), "no" means "Norway" :) Our "testing site" is docs.php.net (which isn't really "testing", it just renders the docs more often so we can catch fails before they spread to mirrors). -Hannes
