PHP Class yii\apidoc\renderers\BaseRenderer

Since: 2.0
Author: Carsten Brandt ([email protected])
Inheritance: extends yii\base\Component
Show file Open project: yiisoft/yii2-apidoc Class Usage Examples

Public Properties

Property Type Description
$apiContext the [[Context]] currently being rendered.
$apiUrl
$controller the apidoc controller instance. Can be used to control output.
$guidePrefix
$guideUrl
$pageTitle string to use as the title of the generated page.

Public Methods

Method Description
createSubjectLink ( PropertyDoc | yii\apidoc\models\MethodDoc | yii\apidoc\models\ConstDoc | EventDoc $subject, string $title = null, array $options = [] ) : string creates a link to a subject
createTypeLink ( yii\apidoc\models\ClassDoc | yii\apidoc\models\InterfaceDoc | yii\apidoc\models\TraitDoc | yii\apidoc\models\ClassDoc[] | yii\apidoc\models\InterfaceDoc[] | yii\apidoc\models\TraitDoc[] | string | string[] $types, BaseDoc $context = null, string $title = null, array $options = [] ) : string creates a link to a type (class, interface or trait)
generateApiUrl ( $typeName ) : mixed Generate an url to a type in apidocs
generateGuideUrl ( string $file ) : string Generate an url to a guide page
init ( )

Protected Methods

Method Description
generateLink ( $text, $href, array $options = [] ) : mixed generate link markup

Private Methods

Method Description
resolveNamespace ( BaseDoc | string $context ) : string

Method Details

generateApiUrl() abstract public method

Generate an url to a type in apidocs
abstract public generateApiUrl ( $typeName ) : mixed
$typeName
return mixed

generateGuideUrl() public method

Generate an url to a guide page
public generateGuideUrl ( string $file ) : string
$file string
return string

init() public method

public init ( )

Property Details

$apiContext public property

the [[Context]] currently being rendered.
public $apiContext

$apiUrl public property

public $apiUrl

$controller public property

the apidoc controller instance. Can be used to control output.
public $controller

$guidePrefix public property

public $guidePrefix

$guideUrl public property

public $guideUrl

$pageTitle public property

string to use as the title of the generated page.
public $pageTitle