PHP Class League\CommonMark\InlineParserEngine

显示文件 Open project: colinodell/commonmark-php Class Usage Examples

Protected Properties

Property Type Description
$environment

Public Methods

Method Description
__construct ( Environment $environment )
parse ( League\CommonMark\Node\Node $container, ReferenceMap $referenceMap )

Protected Methods

Method Description
parseCharacter ( string $character, InlineParserContext $inlineParserContext ) : boolean
processInlines ( InlineParserContext $inlineParserContext )

Private Methods

Method Description
addPlainText ( string $character, League\CommonMark\Node\Node $container, InlineParserContext $inlineParserContext )

Method Details

__construct() public method

public __construct ( Environment $environment )
$environment Environment

parse() public method

public parse ( League\CommonMark\Node\Node $container, ReferenceMap $referenceMap )
$container League\CommonMark\Node\Node
$referenceMap League\CommonMark\Reference\ReferenceMap

parseCharacter() protected method

protected parseCharacter ( string $character, InlineParserContext $inlineParserContext ) : boolean
$character string
$inlineParserContext InlineParserContext
return boolean Whether we successfully parsed a character at that position

processInlines() protected method

protected processInlines ( InlineParserContext $inlineParserContext )
$inlineParserContext InlineParserContext

Property Details

$environment protected_oe property

protected $environment