Re: PhD TypeMaps.
| From: | Hannes Magnusson | Date: | Fri, 14 May 2010 12:32:47 +0000 |
| Subject: | Re: PhD TypeMaps. | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381823@lists.php.net to get a copy of this message | ||
On Thu, May 13, 2010 at 11:32, Richard Quadling
<rquadling@googlemail.com> wrote:
> Hi.
>
> In the Package_Generic_XHTML::$myelementmap, when a tag has multiple
> mappings, what is the relationship between the element and the
> multiple mappings.
>
> Is it a direct parent/child relationship or is it ancestor.
Its a parent/child relationship. I have never seen an example where
you need to check the grandfather without caring for the parent.
> I'm having an issue with generating the correct output for ...
>
> <methodsynopsis>
> <void />
> <methodname>__destruct</methodname>
> <void />
> </methodsynopsis>
>
> According to http://www.docbook.org/xml/5.0/dtd/docbook.dtd / ,
> this
> is valid markup (and passes validation) ...
I saw the thread on docbook@, interesting question.
I do agree with Stefan, but for consistency with the rest of the docs
I do think we should always mention the arguments.
Regarding the returnvalue using <void /> rather then
<type>void</type>.. I've never considered this, and we use
<type>void</type> a lot of the docs, and link it - where as we do not
link <void />.
I have no idea why we use <type>void</type> here rather then <void />..
>
>
> Ideally I'd like a way to tell PhD to differentiate between <void />
> following and not following <methodname>.
>
You should be able to check what the previous sibling element is in
the format_() functions.
I don't have a PhD checkout here, but I think its something like
$props["PREVIOUS_SIBLING"].
-Hannes