PHP Class League\CommonMark\Block\Element\HtmlBlock

Inheritance: extends AbstractBlock
Afficher le fichier Open project: colinodell/commonmark-php

Protected Properties

Свойство Type Description
$type integer

Méthodes publiques

Méthode Description
__construct ( integer $type )
acceptsLines ( ) : boolean Returns true if block type can accept lines of text
canContain ( AbstractBlock $block ) : boolean Returns true if this block can contain the given block as a child node
finalize ( League\CommonMark\ContextInterface $context, $endLineNumber )
getType ( ) : integer
handleRemainingContents ( League\CommonMark\ContextInterface $context, Cursor $cursor )
isCode ( ) : boolean Whether this is a code block
matchesNextLine ( Cursor $cursor )
setType ( integer $type )

Method Details

__construct() public méthode

public __construct ( integer $type )
$type integer

acceptsLines() public méthode

Returns true if block type can accept lines of text
public acceptsLines ( ) : boolean
Résultat boolean

canContain() public méthode

Returns true if this block can contain the given block as a child node
public canContain ( AbstractBlock $block ) : boolean
$block AbstractBlock
Résultat boolean

finalize() public méthode

public finalize ( League\CommonMark\ContextInterface $context, $endLineNumber )
$context League\CommonMark\ContextInterface

getType() public méthode

public getType ( ) : integer
Résultat integer

handleRemainingContents() public méthode

public handleRemainingContents ( League\CommonMark\ContextInterface $context, Cursor $cursor )
$context League\CommonMark\ContextInterface
$cursor League\CommonMark\Cursor

isCode() public méthode

Whether this is a code block
public isCode ( ) : boolean
Résultat boolean

matchesNextLine() public méthode

public matchesNextLine ( Cursor $cursor )
$cursor League\CommonMark\Cursor

setType() public méthode

public setType ( integer $type )
$type integer

Property Details

$type protected_oe property

protected int $type
Résultat integer