PHP Class League\CommonMark\HtmlRenderer

Inheritance: implements League\CommonMark\ElementRendererInterface
Afficher le fichier Open project: colinodell/commonmark-php Class Usage Examples

Protected Properties

Свойство Type Description
$environment Environment

Méthodes publiques

Méthode Description
__construct ( Environment $environment )
escape ( string $string, boolean $preserveEntities = false ) : string
getOption ( string $option, mixed $default = null ) : mixed
renderBlock ( AbstractBlock $block, boolean $inTightList = false ) : string
renderBlocks ( AbstractBlock[] $blocks, boolean $inTightList = false ) : string
renderInlines ( AbstractInline[] $inlines ) : string

Méthodes protégées

Méthode Description
renderInline ( AbstractInline $inline ) : string

Method Details

__construct() public méthode

public __construct ( Environment $environment )
$environment Environment

escape() public méthode

public escape ( string $string, boolean $preserveEntities = false ) : string
$string string
$preserveEntities boolean
Résultat string

getOption() public méthode

public getOption ( string $option, mixed $default = null ) : mixed
$option string
$default mixed
Résultat mixed

renderBlock() public méthode

public renderBlock ( AbstractBlock $block, boolean $inTightList = false ) : string
$block League\CommonMark\Block\Element\AbstractBlock
$inTightList boolean
Résultat string

renderBlocks() public méthode

public renderBlocks ( AbstractBlock[] $blocks, boolean $inTightList = false ) : string
$blocks League\CommonMark\Block\Element\AbstractBlock[]
$inTightList boolean
Résultat string

renderInline() protected méthode

protected renderInline ( AbstractInline $inline ) : string
$inline League\CommonMark\Inline\Element\AbstractInline
Résultat string

renderInlines() public méthode

public renderInlines ( AbstractInline[] $inlines ) : string
$inlines League\CommonMark\Inline\Element\AbstractInline[]
Résultat string

Property Details

$environment protected_oe property

protected Environment,League\CommonMark $environment
Résultat Environment