ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_TokenParserBrokerInterface Interface Reference

Interface implemented by token parser brokers. More...

+ Inheritance diagram for Twig_TokenParserBrokerInterface:
+ Collaboration diagram for Twig_TokenParserBrokerInterface:

Public Member Functions

 getTokenParser ($tag)
 Gets a TokenParser suitable for a tag. More...
 
 setParser (Twig_ParserInterface $parser)
 Calls Twig_TokenParserInterface::setParser on all parsers the implementation knows of. More...
 
 getParser ()
 Gets the Twig_ParserInterface. More...
 

Detailed Description

Interface implemented by token parser brokers.

Token parser brokers allows to implement custom logic in the process of resolving a token parser for a given tag name.

Author
Arnaud Le Blanc arnau.nosp@m.d.lb.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Deprecated:
since 1.12 (to be removed in 2.0)

Definition at line 22 of file TokenParserBrokerInterface.php.

Member Function Documentation

◆ getParser()

Twig_TokenParserBrokerInterface::getParser ( )

Gets the Twig_ParserInterface.

Returns
null|Twig_ParserInterface A Twig_ParserInterface instance or null

Implemented in Twig_TokenParserBroker.

◆ getTokenParser()

Twig_TokenParserBrokerInterface::getTokenParser (   $tag)

Gets a TokenParser suitable for a tag.

Parameters
string$tagA tag name
Returns
Twig_TokenParserInterface|null A Twig_TokenParserInterface or null if no suitable TokenParser was found

Implemented in Twig_TokenParserBroker.

◆ setParser()

Twig_TokenParserBrokerInterface::setParser ( Twig_ParserInterface  $parser)

Calls Twig_TokenParserInterface::setParser on all parsers the implementation knows of.

Implemented in Twig_TokenParserBroker.


The documentation for this interface was generated from the following file: