PHP Class yii\apidoc\helpers\ApiMarkdown

Since: 2.0
Author: Carsten Brandt ([email protected])
Inheritance: extends cebe\markdown\GithubMarkdown
Afficher le fichier Open project: yiisoft/yii2-apidoc Class Usage Examples

Méthodes publiques

Свойство Type Description
$blockTranslations translation for guide block types
$renderer yii\apidoc\renderers\BaseRenderer

Protected Properties

Свойство Type Description
$headings
$renderingContext

Méthodes publiques

Méthode Description
getHeadings ( ) : array
highlight ( string $code, string $language ) : string Highlights code
parse ( $text )
process ( string $content, yii\apidoc\models\TypeDoc $context = null, boolean $paragraph = false ) : string Converts markdown into HTML
renderTable ( $block ) Add bootstrap classes to tables.

Méthodes protégées

Méthode Description
applyToc ( $content )
prepare ( )
renderCode ( $block )
renderHeadline ( $block )
renderLink ( $block )
translateBlockType ( $type )

Method Details

applyToc() protected méthode

Since: 2.0.5
protected applyToc ( $content )

getHeadings() public méthode

Since: 2.0.5
public getHeadings ( ) : array
Résultat array the headlines of this document

highlight() public static méthode

Highlights code
Deprecation: since 2.0.5 this method is not used anymore, highlight.php is used for highlighting
public static highlight ( string $code, string $language ) : string
$code string code to highlight
$language string language of the code to highlight
Résultat string HTML of highlighted code

parse() public méthode

public parse ( $text )

prepare() protected méthode

protected prepare ( )

process() public static méthode

Converts markdown into HTML
public static process ( string $content, yii\apidoc\models\TypeDoc $context = null, boolean $paragraph = false ) : string
$content string
$context yii\apidoc\models\TypeDoc
$paragraph boolean
Résultat string

renderCode() protected méthode

protected renderCode ( $block )

renderHeadline() protected méthode

protected renderHeadline ( $block )

renderTable() public méthode

Add bootstrap classes to tables.
public renderTable ( $block )

translateBlockType() protected méthode

Since: 2.0.5
protected translateBlockType ( $type )

Property Details

$blockTranslations public_oe static_oe property

translation for guide block types
Since: 2.0.5
public static $blockTranslations

$headings protected_oe property

protected $headings

$renderer public_oe static_oe property

public static BaseRenderer,yii\apidoc\renderers $renderer
Résultat yii\apidoc\renderers\BaseRenderer

$renderingContext protected_oe property

protected $renderingContext