PEEL Shopping
Open source ecommerce : PEEL Shopping
|
Default implementation of a token parser broker. More...
Public Member Functions | |
__construct ($parsers=array(), $brokers=array()) | |
Constructor. More... | |
addTokenParser (Twig_TokenParserInterface $parser) | |
Adds a TokenParser. More... | |
removeTokenParser (Twig_TokenParserInterface $parser) | |
Removes a TokenParser. More... | |
addTokenParserBroker (Twig_TokenParserBroker $broker) | |
Adds a TokenParserBroker. More... | |
removeTokenParserBroker (Twig_TokenParserBroker $broker) | |
Removes a TokenParserBroker. More... | |
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 19 of file TokenParserBroker.php.
__construct | ( | $parsers = array() , |
|
$brokers = array() |
|||
) |
Constructor.
array | Traversable | $parsers | A Traversable of Twig_TokenParserInterface instances |
array | Traversable | $brokers | A Traversable of Twig_TokenParserBrokerInterface instances |
Definition at line 31 of file TokenParserBroker.php.
addTokenParser | ( | Twig_TokenParserInterface | $parser | ) |
Adds a TokenParser.
Twig_TokenParserInterface | $parser | A Twig_TokenParserInterface instance |
Definition at line 52 of file TokenParserBroker.php.
addTokenParserBroker | ( | Twig_TokenParserBroker | $broker | ) |
Adds a TokenParserBroker.
Twig_TokenParserBroker | $broker | A Twig_TokenParserBroker instance |
Definition at line 75 of file TokenParserBroker.php.
getParser | ( | ) |
Gets the Twig_ParserInterface.
Implements Twig_TokenParserBrokerInterface.
Definition at line 121 of file TokenParserBroker.php.
getParsers | ( | ) |
Definition at line 116 of file TokenParserBroker.php.
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 101 of file TokenParserBroker.php.
removeTokenParser | ( | Twig_TokenParserInterface | $parser | ) |
Removes a TokenParser.
Twig_TokenParserInterface | $parser | A Twig_TokenParserInterface instance |
Definition at line 62 of file TokenParserBroker.php.
removeTokenParserBroker | ( | Twig_TokenParserBroker | $broker | ) |
Removes a TokenParserBroker.
Twig_TokenParserBroker | $broker | A Twig_TokenParserBroker instance |
Definition at line 85 of file TokenParserBroker.php.
setParser | ( | Twig_ParserInterface | $parser | ) |
Calls Twig_TokenParserInterface::setParser on all parsers the implementation knows of.
Twig_ParserInterface | $parser | A Twig_ParserInterface interface |
Implements Twig_TokenParserBrokerInterface.
Definition at line 126 of file TokenParserBroker.php.
|
protected |
Definition at line 23 of file TokenParserBroker.php.
|
protected |
Definition at line 21 of file TokenParserBroker.php.
|
protected |
Definition at line 22 of file TokenParserBroker.php.
This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:45 - is a product of SAS. All rights reserved.