BumbleDocGen / Technical description of the project / Class map / PrintEntityCollectionAsList
PrintEntityCollectionAsList class:
namespace BumbleDocGen\Core\Renderer\Twig\Function;
final class PrintEntityCollectionAsList implements \BumbleDocGen\Core\Renderer\Twig\Function\CustomFunctionInterface
Outputting entity data as HTML list
Examples of using:
{{ printEntityCollectionAsList(phpClassEntityCollection.filterByInterfaces(['ScriptFramework\\ScriptInterface', 'ScriptFramework\\TestScriptInterface'])) }}
The function will output a list of PHP classes that match the ScriptFramework\ScriptInterface and ScriptFramework\TestScriptInterface interfaces
{{ printEntityCollectionAsList(phpClassEntityCollection) }}
The function will list all documented PHP classes
Function name: | printEntityCollectionAsList |
- # __construct | source code
public function __construct(\BumbleDocGen\Core\Renderer\Twig\Function\GetDocumentedEntityUrl $getDocumentedEntityUrlFunction);
Parameters:
Name | Type | Description |
---|---|---|
$getDocumentedEntityUrlFunction | \BumbleDocGen\Core\Renderer\Twig\Function\GetDocumentedEntityUrl | - |
- # __invoke | source code
public function __invoke(\BumbleDocGen\Core\Parser\Entity\RootEntityCollection $rootEntityCollection, string $type = 'ul', bool $skipDescription = false, bool $useFullName = false): string;
Parameters:
Name | Type | Description |
---|---|---|
$rootEntityCollection | \BumbleDocGen\Core\Parser\Entity\RootEntityCollection | Processed entity collection |
$type | string | List tag type (
|
$skipDescription | bool | Don't print description of this entities |
$useFullName | bool | Use the full name of the entity in the list |
Return value: string
Throws:
- # getName | source code
public static function getName(): string;
Parameters: not specified
Return value: string
- # getOptions | source code
public static function getOptions(): array;
Parameters: not specified
Return value: array