Property | Type | Description | |
---|---|---|---|
$indexView | path or alias of the view file to use for rendering the index page. | ||
$layout | path or alias of the layout file to use. | ||
$typeView | path or alias of the view file to use for rendering types (classes, interfaces, traits). |
Method | Description | |
---|---|---|
generateApiUrl ( $typeName ) | ||
getSourceUrl ( $type, $line = null ) | ||
getView ( ) : |
||
getViewPath ( ) | ||
init ( ) | ||
render ( |
Renders a given [[Context]]. | |
renderClasses ( array $names ) : string | ||
renderDefaultValue ( mixed $value ) : string | Renders the default value. | |
renderInheritance ( yii\apidoc\models\ClassDoc $class ) : string | ||
renderInterfaces ( array $names ) : string | ||
renderMethodSignature ( yii\apidoc\models\MethodDoc $method, $context = null ) : string | ||
renderPropertySignature ( |
||
renderTraits ( array $names ) : string |
Method | Description | |
---|---|---|
generateFileName ( string $typeName ) : string | Generates file name for API page for a given type | |
generateLink ( $text, $href, $options = [] ) | ||
renderWithLayout ( string $viewFile, array $params ) : string | Renders file applying layout |
protected generateFileName ( string $typeName ) : string | ||
$typeName | string | |
return | string |
public render ( |
||
$context | the api documentation context to render. | |
$targetDir |
public renderClasses ( array $names ) : string | ||
$names | array | |
return | string |
public renderDefaultValue ( mixed $value ) : string | ||
$value | mixed | |
return | string |
public renderInheritance ( yii\apidoc\models\ClassDoc $class ) : string | ||
$class | yii\apidoc\models\ClassDoc | |
return | string |
public renderInterfaces ( array $names ) : string | ||
$names | array | |
return | string |
public renderMethodSignature ( yii\apidoc\models\MethodDoc $method, $context = null ) : string | ||
$method | yii\apidoc\models\MethodDoc | |
return | string |
public renderPropertySignature ( |
||
$property | ||
return | string |
public renderTraits ( array $names ) : string | ||
$names | array | |
return | string |
public $indexView |