프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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). |
메소드 | 설명 | |
---|---|---|
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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string |
public render ( |
||
$context | the api documentation context to render. | |
$targetDir |
public renderDefaultValue ( mixed $value ) : string | ||
$value | mixed | |
리턴 | string |
public renderInheritance ( yii\apidoc\models\ClassDoc $class ) : string | ||
$class | yii\apidoc\models\ClassDoc | |
리턴 | string |
public renderMethodSignature ( yii\apidoc\models\MethodDoc $method, $context = null ) : string | ||
$method | yii\apidoc\models\MethodDoc | |
리턴 | string |
public renderPropertySignature ( |
||
$property | ||
리턴 | string |
public $indexView |