{if $var} {assign var="num" value="refsect3"} {else} {assign var="num" value="refsect1"} {/if} <{$num} id="{$id}.desc"> &title.desc; {if $line_number} Source on line #: {if $class_slink}{$class_slink}{else}{$line_number}{/if} {/if} {if $var} {$sdesc|default:"¬documented;"} {/if} {if $desc} {$desc} {else} {if $var && $sdesc} {else} ¬documented; {/if} {/if} {if $params} <{$num} id="{$id}.param"> &title.param; {section name=params loop=$params} {assign var="temp" value=$params[params].name} {if strpos($params[params].type, '|') || strpos($cparams.$temp.cdatatype, '>')} {$params[params].type} {else} {if $params[params].type == 'integer'} {assign var="paramtype" value="int"} {elseif $params[params].type == 'boolean'} {assign var="paramtype" value="bool"} {else} {assign var="paramtype" value=$params[params].type} {/if} {if in_array($paramtype, array('bool', 'int', 'float', 'string', 'mixed', 'object', 'resource', 'array', 'res'))} &type.{$paramtype}; {else} {$paramtype} {/if} {/if} {$params[params].name|replace:"&":"&"} {$params[params].description} {/section} {/if} {foreach from=$tags item="tag" key="tagname"} {if $tagname != 'static' && $tagname != 'author' && $tagname != 'version' && $tagname != 'copyright' && $tagname != 'package' && $tagname != 'subpackage' && $tagname != 'example'} <{$num} id="{$id}.{$tagname}"> &title.{$tagname}; {section name=t loop=$tag} {$tag[t].keyword} {$tag[t].data} {/section} {elseif $tagname == 'deprecated'} <{$num} id="{$id}.{$tagname}"> &title.note; ¬e.deprecated; {section name=t loop=$tag} {$tag[t].data} {/section} {elseif $tagname == 'static'} {assign var="canstatic" value=true} {elseif $tagname == 'example'} <{$num} id="{$id}.{$tagname}"> Examples {section name=t loop=$tag} {$tag[t].data} {/section} {elseif $tagname != 'package' && $tagname != 'subpackage'} <{$num} id="{$id}.{$tagname}"> {$tagname}{* <-- need language snippets support for phpDocumentor, will use this instead *} {section name=t loop=$tag} {$tagname} {$tag[t].data} {/section} {/if} {/foreach} {if $canstatic} <{$num} id="{$id}.note"> &title.note; ¬e.canstatic; {else} <{$num} id="{$id}.note"> &title.note; ¬e.notstatic; {/if}