PHP Class League\CommonMark\Block\Element\ListItem

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

Protected Properties

Свойство Type Description
$listData ListData

Méthodes publiques

Méthode Description
__construct ( ListData $listData )
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
isCode ( ) : boolean Whether this is a code block
matchesNextLine ( Cursor $cursor )
shouldLastLineBeBlank ( Cursor $cursor, integer $currentLineNumber ) : boolean

Method Details

__construct() public méthode

public __construct ( ListData $listData )
$listData ListData

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

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

shouldLastLineBeBlank() public méthode

public shouldLastLineBeBlank ( Cursor $cursor, integer $currentLineNumber ) : boolean
$cursor League\CommonMark\Cursor
$currentLineNumber integer
Résultat boolean

Property Details

$listData protected_oe property

protected ListData,League\CommonMark\Block\Element $listData
Résultat ListData