ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Default implementation of a token parser broker. More...
Public Member Functions | |
__construct ($parsers=array(), $brokers=array(), $triggerDeprecationError=true) | |
addTokenParser (Twig_TokenParserInterface $parser) | |
removeTokenParser (Twig_TokenParserInterface $parser) | |
addTokenParserBroker (self $broker) | |
removeTokenParserBroker (self $broker) | |
getTokenParser ($tag) | |
Gets a suitable TokenParser for a tag. More... | |
getParsers () | |
getParser () | |
Gets the Twig_ParserInterface. More... | |
setParser (Twig_ParserInterface $parser) | |
Calls Twig_TokenParserInterface::setParser on all parsers the implementation knows of. More... | |
Protected Attributes | |
$parser | |
$parsers = array() | |
$brokers = array() | |
Default implementation of a token parser broker.
Definition at line 20 of file TokenParserBroker.php.
Twig_TokenParserBroker::__construct | ( | $parsers = array() , |
|
$brokers = array() , |
|||
$triggerDeprecationError = true |
|||
) |
array | Traversable | $parsers | A Traversable of Twig_TokenParserInterface instances |
array | Traversable | $brokers | A Traversable of Twig_TokenParserBrokerInterface instances |
bool | $triggerDeprecationError |
Definition at line 31 of file TokenParserBroker.php.
References $brokers, $parser, and $parsers.
Twig_TokenParserBroker::addTokenParser | ( | Twig_TokenParserInterface | $parser | ) |
Definition at line 51 of file TokenParserBroker.php.
References $parser, and Twig_TokenParserInterface\getTag().
Twig_TokenParserBroker::addTokenParserBroker | ( | self | $broker | ) |
Definition at line 64 of file TokenParserBroker.php.
Twig_TokenParserBroker::getParser | ( | ) |
Gets the Twig_ParserInterface.
Implements Twig_TokenParserBrokerInterface.
Definition at line 105 of file TokenParserBroker.php.
References $parser.
Twig_TokenParserBroker::getParsers | ( | ) |
Twig_TokenParserBroker::getTokenParser | ( | $tag | ) |
Gets a suitable TokenParser for a tag.
First looks in parsers, then in brokers.
string | $tag | A tag name |
Implements Twig_TokenParserBrokerInterface.
Definition at line 85 of file TokenParserBroker.php.
Twig_TokenParserBroker::removeTokenParser | ( | Twig_TokenParserInterface | $parser | ) |
Definition at line 56 of file TokenParserBroker.php.
References $name, and Twig_TokenParserInterface\getTag().
Twig_TokenParserBroker::removeTokenParserBroker | ( | self | $broker | ) |
Definition at line 69 of file TokenParserBroker.php.
Twig_TokenParserBroker::setParser | ( | Twig_ParserInterface | $parser | ) |
Calls Twig_TokenParserInterface::setParser on all parsers the implementation knows of.
Implements Twig_TokenParserBrokerInterface.
Definition at line 110 of file TokenParserBroker.php.
References $parser.
|
protected |
Definition at line 24 of file TokenParserBroker.php.
Referenced by __construct().
|
protected |
Definition at line 22 of file TokenParserBroker.php.
Referenced by __construct(), addTokenParser(), getParser(), getTokenParser(), and setParser().
|
protected |
Definition at line 23 of file TokenParserBroker.php.
Referenced by __construct(), and getParsers().