Class yii\apidoc\templates\bootstrap\ApiRenderer
Inheritance | yii\apidoc\templates\bootstrap\ApiRenderer » yii\apidoc\templates\html\ApiRenderer » yii\apidoc\renderers\ApiRenderer » yii\apidoc\renderers\BaseRenderer » yii\base\Component » yii\base\BaseObject |
---|---|
Implements | yii\base\Configurable, yii\base\ViewContextInterface |
Uses Traits | yii\apidoc\templates\bootstrap\RendererTrait |
Available since version | 2.0 |
Source Code | https://github.com/yiisoft/yii2-apidoc/blob/master/templates/bootstrap/ApiRenderer.php |
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$apiContext | yii\apidoc\models\Context | The yii\apidoc\models\Context currently being rendered. | yii\apidoc\renderers\BaseRenderer |
$apiUrl | yii\apidoc\renderers\BaseRenderer | ||
$controller | yii\console\Controller | The apidoc controller instance. | yii\apidoc\renderers\BaseRenderer |
$extensions | array | Official Yii extensions | yii\apidoc\templates\bootstrap\RendererTrait |
$guidePrefix | yii\apidoc\renderers\BaseRenderer | ||
$guideUrl | yii\apidoc\renderers\BaseRenderer | ||
$indexView | yii\apidoc\templates\bootstrap\ApiRenderer | ||
$layout | yii\apidoc\templates\bootstrap\ApiRenderer | ||
$pageTitle | string | String to use as the title of the generated page. | yii\apidoc\renderers\BaseRenderer |
$typeView | string | Path or alias of the view file to use for rendering types (classes, interfaces, traits). | yii\apidoc\templates\html\ApiRenderer |
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
filterTypes() | Returns types of a given class | yii\apidoc\templates\bootstrap\RendererTrait |
generateFileName() | Generates file name for API page for a given type | yii\apidoc\templates\html\ApiRenderer |
generateLink() | Generate link markup | yii\apidoc\renderers\BaseRenderer |
getTypeCategory() | Returns category of TypeDoc | yii\apidoc\templates\bootstrap\RendererTrait |
renderWithLayout() | Renders file applying layout | yii\apidoc\templates\html\ApiRenderer |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
GUIDE_PREFIX | 'guide-' | Deprecated since 2.0.1 use $guidePrefix instead which allows configuring this options | yii\apidoc\renderers\BaseRenderer |
Property Details
Method Details
public void getSourceUrl ( $type, $line = null ) | ||
$type | ||
$line |
Renders a given \yii\apidoc\templates\bootstrap\Context.
public void render ( $context, $targetDir ) | ||
$context | yii\apidoc\models\Context | The api documentation context to render. |
$targetDir | string |