summaryrefslogtreecommitdiff
path: root/buildscripts/PhpDocumentor/phpDocumentor/Converters/HTML/Smarty/templates/default/templates/function.tpl
blob: 14fd78eb8044b1ac13527b03a7491963850399a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div id="function{if $show == 'summary'}_summary{/if}">
{section name=func loop=$functions}
{if $show == 'summary'}
function {$functions[func].id}, {$functions[func].sdesc}<br>
{else}
	<a name="{$functions[func].function_dest}"></a>
	<h3>{$functions[func].function_name}</h3>
	<div class="indent">
		<code>{$functions[func].function_return} {if $functions[func].ifunction_call.returnsref}&amp;{/if}{$functions[func].function_name}(
{if count($functions[func].ifunction_call.params)}
{section name=params loop=$functions[func].ifunction_call.params}
{if $smarty.section.params.iteration != 1}, {/if}{if $functions[func].ifunction_call.params[params].hasdefault}[{/if}{$functions[func].ifunction_call.params[params].type} {$functions[func].ifunction_call.params[params].name}{if $functions[func].ifunction_call.params[params].hasdefault} = {$functions[func].ifunction_call.params[params].default|escape:"html"}]{/if}
{/section}
{/if})</code>
		<p class="linenumber">[line {if $functions[func].slink}{$functions[func].slink}{else}{$functions[func].line_number}{/if}]</p>
		{include file="docblock.tpl" sdesc=$functions[func].sdesc desc=$functions[func].desc tags=$functions[func].tags}
		{if $functions[func].function_conflicts.conflict_type}
		<p><b>Conflicts with functions:</b> 
		{section name=me loop=$functions[func].function_conflicts.conflicts}
		{$functions[func].function_conflicts.conflicts[me]}<br />
		{/section}
		</p>
		{/if}

		<h4>Parameters</h4>
		<ul>
		{section name=params loop=$functions[func].params}
			<li>
			<span class="type">{$functions[func].params[params].datatype}</span>
			<b>{$functions[func].params[params].var}</b> 
			- 
			{$functions[func].params[params].data}</li>
		{/section}
		</ul>
	</div>
	<p class="top">[ <a href="#top">Top</a> ]</p>
{/if}
{/section}
</div>