1{if $var}
2{assign var="num" value="refsect3"}
3{else}
4{assign var="num" value="refsect1"}
5{/if}
6    <{$num} id="{$id}.desc">
7     &title.desc;
8{if $line_number}
9     <simpara>
10      Source on line #: {if $class_slink}{$class_slink}{else}{$line_number}{/if}
11     </simpara>
12{/if}
13{if $var}
14     <simpara>
15      {$sdesc|default:"&notdocumented;"}
16     </simpara>
17{/if}
18{if $desc}
19     {$desc}
20{else}
21{if $var && $sdesc}
22{else}
23     &notdocumented;
24{/if}
25{/if}
26    </{$num}>
27{if $params}
28   <{$num} id="{$id}.param">
29    &title.param;
30    <para>
31{section name=params loop=$params}
32     <variablelist>
33      <varlistentry>
34       <term>
35        {assign var="temp" value=$params[params].name}
36        {if strpos($params[params].type, '|') ||
37        strpos($cparams.$temp.cdatatype, '>')}
38        <type>{$params[params].type}</type>
39        {else}
40        {if $params[params].type == 'integer'}
41        {assign var="paramtype" value="int"}
42        {elseif $params[params].type == 'boolean'}
43        {assign var="paramtype" value="bool"}
44        {else}
45        {assign var="paramtype" value=$params[params].type}
46        {/if}
47        {if in_array($paramtype, array('bool', 'int', 'float', 'string', 'mixed', 'object', 'resource', 'array', 'res'))}
48        &type.{$paramtype};
49        {else}
50        <type>{$paramtype}</type>
51        {/if}
52        {/if}
53         <parameter>{$params[params].name|replace:"&":"&amp;"}</parameter>
54       </term>
55       <listitem>
56        <para>
57         {$params[params].description}
58        </para>
59       </listitem>
60      </varlistentry>
61     </variablelist>
62{/section}
63    </para>
64   </{$num}>
65{/if}
66{foreach from=$tags item="tag" key="tagname"}
67{if $tagname != 'static' && $tagname != 'author' && $tagname != 'version' && $tagname != 'copyright' && $tagname != 'package' && $tagname != 'subpackage' && $tagname != 'example'}
68   <{$num} id="{$id}.{$tagname}">
69    &title.{$tagname};
70    {section name=t loop=$tag}
71    <para>
72      <emphasis>{$tag[t].keyword}</emphasis> {$tag[t].data}
73    </para>
74    {/section}
75   </{$num}>
76{elseif $tagname == 'deprecated'}
77   <{$num} id="{$id}.{$tagname}">
78    &title.note;
79    &note.deprecated;
80    {section name=t loop=$tag}
81    <para>
82      {$tag[t].data}
83    </para>
84    {/section}
85   </{$num}>
86{elseif $tagname == 'static'}
87{assign var="canstatic" value=true}
88{elseif $tagname == 'example'}
89   <{$num} id="{$id}.{$tagname}">
90   <title>Examples</title>
91    {section name=t loop=$tag}
92    {$tag[t].data}
93    {/section}
94   </{$num}>
95{elseif $tagname != 'package' && $tagname != 'subpackage'}
96   <{$num} id="{$id}.{$tagname}">
97    <title>{$tagname}</title>{* <-- need language snippets support for phpDocumentor, will use this instead *}
98    {section name=t loop=$tag}
99    <para>
100      <emphasis>{$tagname}</emphasis> {$tag[t].data}
101    </para>
102    {/section}
103   </{$num}>
104{/if}
105{/foreach}
106{if $canstatic}
107   <{$num} id="{$id}.note">
108    &title.note;
109    &note.canstatic;
110   </{$num}>
111{else}
112   <{$num} id="{$id}.note">
113    &title.note;
114    &note.notstatic;
115   </{$num}>
116{/if}
117