Abstract Class yii\apidoc\components\BaseController
Inheritance | yii\apidoc\components\BaseController » yii\console\Controller |
---|---|
Subclasses | yii\apidoc\commands\ApiController, yii\apidoc\commands\GuideController |
Available since version | 2.0 |
Command to render API Documentation files
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$exclude | string|array | Files to exclude. | yii\apidoc\components\BaseController |
$pageTitle | string | Page title | yii\apidoc\components\BaseController |
$template | string | Template to use for rendering | yii\apidoc\components\BaseController |
Public Methods
Method | Description | Defined By |
---|---|---|
options() | yii\apidoc\components\BaseController |
Protected Methods
Method | Description | Defined By |
---|---|---|
findFiles() | Finds files | yii\apidoc\components\BaseController |
findRenderer() | yii\apidoc\components\BaseController | |
loadContext() | Loads context from cache | yii\apidoc\components\BaseController |
normalizeTargetDir() | Checks that target directory is valid. Asks questions in tricky cases. | yii\apidoc\components\BaseController |
searchFiles() | Finds files to process | yii\apidoc\components\BaseController |
storeContext() | Writes context into cache file | yii\apidoc\components\BaseController |
updateContext() | yii\apidoc\components\BaseController |
Property Details
Method Details
Finds files
protected abstract array findFiles ( $dir, $except = [] ) | ||
$dir | string | Directory to search files in. |
$except | array | List of names to exclude from search. |
return | array | Files found. |
---|
protected abstract yii\apidoc\renderers\BaseRenderer findRenderer ( $template ) | ||
$template | string |
Loads context from cache
protected yii\apidoc\models\Context loadContext ( $location ) | ||
$location | string |
Checks that target directory is valid. Asks questions in tricky cases.
protected boolean|string normalizeTargetDir ( $target ) | ||
$target | string |
public void options ( $actionID ) | ||
$actionID |
Finds files to process
protected array|boolean searchFiles ( $sourceDirs ) | ||
$sourceDirs | array | |
return | array|boolean | List of files to process or false on failure |
---|
Writes context into cache file
protected void storeContext ( $context, $location ) | ||
$context | yii\apidoc\models\Context | |
$location | string |
protected void updateContext ( $context ) | ||
$context | yii\apidoc\models\Context |