Trait yii\apidoc\templates\krajee\RendererTrait

Implemented byyii\apidoc\templates\krajee\ApiRenderer, yii\apidoc\templates\krajee\GuideRenderer
Source Code https://github.com/yiisoft/yii2-apidoc/blob/master/templates/krajee/RendererTrait.php

Common methods for renderers

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$extensions array Official Yii extensions yii\apidoc\templates\krajee\RendererTrait

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getNavTypes() Returns nav TypeDocs yii\apidoc\templates\krajee\RendererTrait

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
filterTypes() Returns types of a given class yii\apidoc\templates\krajee\RendererTrait
getTypeCategory() Returns category of TypeDoc yii\apidoc\templates\krajee\RendererTrait

Property Details

$extensions public property

Official Yii extensions

public array $extensions = [
    'apidoc''authclient''codeception''composer''debug''elasticsearch''faker''gii''httpclient''imagine''jui''mongodb''queue''redis''shell''smarty''sphinx''swiftmailer''twig'
]

Method Details

filterTypes() protected method

Returns types of a given class

protected array filterTypes ( $types, $navClasses )
$types yii\apidoc\models\TypeDoc[]
$navClasses string
getNavTypes() public method

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

getTypeCategory() protected method

Returns category of TypeDoc

protected string getTypeCategory ( $type )
$type yii\apidoc\models\TypeDoc