Trait yii\apidoc\templates\bootstrap\RendererTrait
Common methods for renderers
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$extensions | array | Official Yii extensions | yii\apidoc\templates\bootstrap\RendererTrait |
Public Methods
Method | Description | Defined By |
---|---|---|
getNavTypes() | Returns nav TypeDocs | yii\apidoc\templates\bootstrap\RendererTrait |
Protected Methods
Method | Description | Defined By |
---|---|---|
filterTypes() | Returns types of a given class | yii\apidoc\templates\bootstrap\RendererTrait |
getTypeCategory() | Returns category of TypeDoc | yii\apidoc\templates\bootstrap\RendererTrait |
Property Details
Official Yii extensions
public array $extensions = [
'apidoc', 'authclient', 'bootstrap', 'codeception', 'composer', 'debug', 'elasticsearch', 'faker', 'gii', 'httpclient', 'imagine', 'jui', 'mongodb', 'redis', 'shell', 'smarty', 'sphinx', 'swiftmailer', 'twig'
]
'apidoc', 'authclient', 'bootstrap', 'codeception', 'composer', 'debug', 'elasticsearch', 'faker', 'gii', 'httpclient', 'imagine', 'jui', 'mongodb', 'redis', 'shell', 'smarty', 'sphinx', 'swiftmailer', 'twig'
]
Method Details
Returns types of a given class
protected array filterTypes ( $types, $navClasses ) | ||
$types | yii\apidoc\models\TypeDoc[] | |
$navClasses | string |
Returns nav TypeDocs
public array getNavTypes ( $type, $types ) | ||
$type | yii\apidoc\models\TypeDoc | Typedoc to take category from |
$types | yii\apidoc\models\TypeDoc[] | TypeDocs to filter |
Returns category of TypeDoc
protected string getTypeCategory ( $type ) | ||
$type | yii\apidoc\models\TypeDoc |