|
1 | 1 | {layout '@layout.latte'} |
2 | 2 | {var $active = 'class'} |
3 | 3 |
|
4 | | -{block title}{if $class->deprecated}Deprecated {/if}{if $class->interface}Interface{elseif $class->trait}Trait{else}Class{/if} {$class->name}{/block} |
| 4 | +{block title}{$class->name} {if $class->deprecated}(Deprecated){/if}{if $class->interface}(Interface){elseif $class->trait}(Trait){else}(Class){/if}{/block} |
5 | 5 |
|
6 | 6 | {block content} |
7 | 7 | <div id="content" class="class"> |
|
74 | 74 | </div> |
75 | 75 |
|
76 | 76 | <div class="alert alert-info"> |
77 | | - {if !$class->interface && !$class->trait && ($class->abstract || $class->final)}<b>{if $class->abstract}Abstract{else}Final{/if}</b><br>{/if} |
78 | | - {if $class->internal}<b>PHP Extension:</b> <a href="{$class->extension|manualUrl}" title="Go to PHP documentation">{$class->extension->name|firstUpper}</a><br>{/if} |
79 | | - {if $class->inNamespace()}<b>Namespace:</b> {$class->namespaceName|namespaceLinks|noescape}<br>{/if} |
80 | | - {if $class->inPackage()}<b>Package:</b> {$class->packageName|packageLinks|noescape}<br>{/if} |
81 | | - |
82 | | - {if $class->internal} |
83 | | - <b>Documented at:</b> <a href="{$class|manualUrl}" title="Go to PHP documentation">php.net</a><br> |
84 | | - {else} |
85 | | - <b>Located at:</b> <a n:tag-if="$config->sourceCode" href="{$class|sourceUrl}" title="Go to source code">{$class->fileName|relativePath}</a><br> |
86 | | - {/if} |
87 | | - |
88 | | - {foreach $template->annotationSort($template->annotationFilter($class->annotations)) as $annotation => $values} |
89 | | - {foreach $values as $value} |
90 | | - {if $annotation == "apidoc"} |
91 | | - <span class="api-doc-link"><b>API documentation: <a href="{$value|noescape}" target="api-doc">{$value|noescape}</a></b></span><br> |
92 | | - {else} |
93 | | - <b>{$annotation|annotationBeautify}{if $value}:{/if}</b> |
94 | | - {$value|annotation:$annotation:$class|noescape}<br> |
95 | | - {/if} |
96 | | - {/foreach} |
97 | | - {/foreach} |
98 | | - <br> |
| 77 | + <table class="class-annotations"> |
| 78 | + {if !$class->interface && !$class->trait && ($class->abstract || $class->final)}<tr><th colspan="2">{if $class->abstract}Abstract{else}Final{/if}</th></tr>{/if} |
| 79 | + {if $class->internal}<tr><th>PHP Extension</th><td><a href="{$class->extension|manualUrl}" title="Go to PHP documentation">{$class->extension->name|firstUpper}</a></td></tr>{/if} |
| 80 | + {if $class->inNamespace()}<tr><th>Namespace</th><td>{$class->namespaceName|namespaceLinks|noescape}</td></tr>{/if} |
| 81 | + {if $class->inPackage()}<tr><th>Package</th><td>{$class->packageName|packageLinks|noescape}</td></tr>{/if} |
| 82 | + |
| 83 | + {if $class->internal} |
| 84 | + <tr><th>Documented at</th><td><a href="{$class|manualUrl}" title="Go to PHP documentation">php.net</a></td></tr> |
| 85 | + {else} |
| 86 | + <tr><th>Located at</td><td><a n:tag-if="$config->sourceCode" href="{$class|sourceUrl}" title="Go to source code">{$class->fileName|relativePath}</a></td></tr> |
| 87 | + {/if} |
| 88 | + |
| 89 | + {foreach $template->annotationSort($template->annotationFilter($class->annotations)) as $annotation => $values} |
| 90 | + {foreach $values as $value} |
| 91 | + {if $annotation == "apidoc"} |
| 92 | + <tr><th>API documentation</th><td><b><a href="{$value|noescape}" target="api-doc">{$value|noescape}</a></b></span></td></tr> |
| 93 | + {elseif $annotation == "description"} |
| 94 | + <tr><td colspan="2">{$value|annotation:$annotation:$class|noescape}</td></tr> |
| 95 | + {else} |
| 96 | + <tr><th>{$annotation|annotationBeautify}</th><td>{$value|annotation:$annotation:$class|noescape}</td></tr> |
| 97 | + {/if} |
| 98 | + {/foreach} |
| 99 | + {/foreach} |
| 100 | + </table> |
99 | 101 | </div> |
100 | 102 |
|
101 | 103 | {var $ownMethods = $class->ownMethods} |
|
210 | 212 |
|
211 | 213 | {if $ownMethods || $ownMagicMethods || $inheritedMethods || $inheritedMagicMethods} |
212 | 214 | <div class="panel panel-default methods"> |
213 | | - <div class="panel-heading"><h2>Methods summary</h2></div> |
| 215 | + <div class="panel-heading"><h2>Methods</h2></div> |
214 | 216 | <table class="summary table table-bordered table-striped methods" id="methods" n:if="$ownMethods || $ownMagicMethods || $inheritedMethods || $inheritedMagicMethods"> |
215 | 217 | {foreach $ownMethods as $method} |
216 | 218 | {include method, method => $method} |
|
317 | 319 | {/define} |
318 | 320 |
|
319 | 321 | <div class="panel panel-default constants"> |
320 | | - <div class="panel-heading"><h2>Constants summary</h2></div> |
| 322 | + <div class="panel-heading"><h2>Constants</h2></div> |
321 | 323 | <table class="summary table table-bordered table-striped constants" id="constants" n:if="$ownConstants || $inheritedConstants"> |
322 | 324 | {foreach $constants as $constant} |
323 | 325 | {include constant, constant => $constant} |
|
387 | 389 |
|
388 | 390 | {if $ownProperties || $ownMagicProperties} |
389 | 391 | <div class="panel panel-default properties"> |
390 | | - <div class="panel-heading"><h2>Properties summary</h2></div> |
| 392 | + <div class="panel-heading"><h2>Properties</h2></div> |
391 | 393 | <table class="summary table table-bordered table-striped properties" id="properties" n:if="$ownProperties"> |
392 | 394 |
|
393 | 395 | {foreach $ownProperties as $property} |
|
0 commit comments