Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #875 from ApiGen/menu-list-feature
[Generator] add reflection lists
- Loading branch information
Showing
53 changed files
with
795 additions
and
424 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{layout '@layout.latte'} | ||
|
||
{block title}{$pageTitle}{/block} | ||
|
||
{block content} | ||
<h1>{$pageTitle}</h1> | ||
|
||
<table class="summary table table-bordered table-responsive table-striped"> | ||
{foreach $classes as $class} | ||
<tr> | ||
<td class="name"> | ||
<a href="{$class|linkReflection}">{$class->getName()}</a> | ||
</td> | ||
</tr> | ||
{/foreach} | ||
</table> | ||
{/block} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,61 @@ | ||
{layout '@layout.latte'} | ||
{var $activePage = 'function'} | ||
|
||
{block title} | ||
{if $function->isDeprecated()}Deprecated {/if}Function {$function->getName()} | ||
{/block} | ||
|
||
{block content} | ||
<div id="content" class="function"> | ||
<h1 n:class="$function->isDeprecated() ? deprecated">Function {$function->getShortName()}</h1> | ||
<h1 n:class="$function->isDeprecated() ? deprecated">Function {$function->getShortName()}</h1> | ||
|
||
{if $function->getDescription()} | ||
<div class="description"> | ||
{$function|description} | ||
</div> | ||
{/if} | ||
{if $function->getDescription()} | ||
<div class="description"> | ||
{$function|description} | ||
</div> | ||
{/if} | ||
|
||
<div class="info"> | ||
{if $function->getNamespaceName()}<b>Namespace:</b> {$function->getNamespaceName()|linkAllNamespaceParts|noescape}<br>{/if} | ||
{var $filteredAnnotations = ($function->getAnnotations()|annotationFilter: ['param', 'return', 'throws'])} | ||
{foreach $filteredAnnotations as $annotation => $values} | ||
{foreach $values as $value} | ||
<b>{$annotation}{if $value}:{/if}</b> | ||
{$value|annotation:$function|noescape}<br> | ||
{/foreach} | ||
<div class="info"> | ||
{if $function->getNamespaceName()}<b>Namespace:</b> {$function->getNamespaceName()|linkAllNamespaceParts|noescape}<br>{/if} | ||
{var $filteredAnnotations = ($function->getAnnotations()|annotationFilter: ['param', 'return', 'throws'])} | ||
{foreach $filteredAnnotations as $annotation => $values} | ||
{foreach $values as $value} | ||
<b>{$annotation}{if $value}:{/if}</b> | ||
{$value|annotation:$function|noescape}<br> | ||
{/foreach} | ||
<a href="{$function|linkSource}" class="open-source-code">Open source code</a> | ||
<br> | ||
</div> | ||
{/foreach} | ||
<a href="{$function|linkSource}" class="open-source-code">Open source code</a> | ||
<br> | ||
</div> | ||
|
||
{var $annotations = $function->getAnnotations()} | ||
{var $annotations = $function->getAnnotations()} | ||
|
||
<table class="summary table table-responsive table-bordered table-striped" id="parameters" n:if="count($function->getParameters())"> | ||
<tr><th>Parameters Summary</th></tr> | ||
<tr n:foreach="$function->getParameters() as $parameter" id="${$parameter->getName()}"> | ||
<table class="summary table table-responsive table-bordered table-striped" id="parameters" n:if="count($function->getParameters())"> | ||
<tr><th>Parameters Summary</th></tr> | ||
<tr n:foreach="$function->getParameters() as $parameter" id="${$parameter->getName()}"> | ||
<td class="name"> | ||
<code> | ||
{if $parameter->getTypeHintClassOrInterfaceReflection()} | ||
{$parameter->getTypeHintClassOrInterfaceReflection()|linkReflection} | ||
{else} | ||
{$parameter->getTypeHint()} | ||
{/if} | ||
</code> | ||
</td> | ||
<td class="value"><code>{block|strip} | ||
<span class="property-name">{if $parameter->isPassedByReference()}& {/if}${$parameter->getName()}</span> | ||
{if $parameter->isDefaultValueAvailable()} = {$parameter->getDefaultValueDefinition()|highlightValue:$function|noescape}{elseif $parameter->isVariadic()},…{/if} | ||
{/block}</code></td> | ||
<td>{$parameter|description}</td> | ||
</tr> | ||
</table> | ||
|
||
{if isset($annotations['return']) && $annotations['return'][0] !== 'void'} | ||
<table class="summary table table-responsive table-bordered table-striped" id="returns"> | ||
<tr><th>Return value Summary</th></tr> | ||
<tr> | ||
<td class="name"> | ||
<code> | ||
{if $parameter->getTypeHintClassOrInterfaceReflection()} | ||
{$parameter->getTypeHintClassOrInterfaceReflection()|linkReflection} | ||
{else} | ||
{$parameter->getTypeHint()} | ||
{/if} | ||
</code> | ||
{$annotations['return'][0]|annotation:$function|noescape} | ||
</td> | ||
<td class="value"><code>{block|strip} | ||
<span class="property-name">{if $parameter->isPassedByReference()}& {/if}${$parameter->getName()}</span> | ||
{if $parameter->isDefaultValueAvailable()} = {$parameter->getDefaultValueDefinition()|highlightValue:$function|noescape}{elseif $parameter->isVariadic()},…{/if} | ||
{/block}</code></td> | ||
<td>{$parameter|description}</td> | ||
</tr> | ||
</table> | ||
|
||
{if isset($annotations['return']) && $annotations['return'][0] !== 'void'} | ||
<table class="summary table table-responsive table-bordered table-striped" id="returns"> | ||
<tr><th>Return value Summary</th></tr> | ||
<tr> | ||
<td class="name"> | ||
{$annotations['return'][0]|annotation:$function|noescape} | ||
</td> | ||
</tr> | ||
</table> | ||
{/if} | ||
</div> | ||
{/if} | ||
{/block} |
Oops, something went wrong.