ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Public Member Functions | |
__construct (AssetFactory $factory, $tag, $output, $single=false, array $extensions=array()) | |
Constructor. More... | |
parse (\Twig_Token $token) | |
getTag () | |
testEndTag (\Twig_Token $token) | |
Protected Member Functions | |
createBodyNode (AssetInterface $asset, \Twig_Node $body, array $inputs, array $filters, $name, array $attributes=array(), $lineno=0, $tag=null) | |
createNode (AssetInterface $asset, \Twig_NodeInterface $body, array $inputs, array $filters, $name, array $attributes=array(), $lineno=0, $tag=null) | |
Private Attributes | |
$factory | |
$tag | |
$output | |
$single | |
$extensions | |
Definition at line 17 of file AsseticTokenParser.php.
Assetic\Extension\Twig\AsseticTokenParser::__construct | ( | AssetFactory | $factory, |
$tag, | |||
$output, | |||
$single = false , |
|||
array | $extensions = array() |
||
) |
Constructor.
Attributes can be added to the tag by passing names as the options array. These values, if found, will be passed to the factory and node.
AssetFactory | $factory | The asset factory |
string | $tag | The tag name |
string | $output | The default output string |
Boolean | $single | Whether to force a single asset |
array | $extensions | Additional attribute names to look for |
Definition at line 37 of file AsseticTokenParser.php.
References Assetic\Extension\Twig\AsseticTokenParser\$extensions, Assetic\Extension\Twig\AsseticTokenParser\$factory, Assetic\Extension\Twig\AsseticTokenParser\$output, Assetic\Extension\Twig\AsseticTokenParser\$single, and Assetic\Extension\Twig\AsseticTokenParser\$tag.
|
protected |
AssetInterface | $asset | |
\Twig_Node | $body | |
array | $inputs | |
array | $filters | |
string | $name | |
array | $attributes | |
int | $lineno | |
string | $tag |
Definition at line 161 of file AsseticTokenParser.php.
References Assetic\Extension\Twig\AsseticTokenParser\$tag, and Assetic\Extension\Twig\AsseticTokenParser\createNode().
Referenced by Assetic\Extension\Twig\AsseticTokenParser\parse().
|
protected |
AssetInterface | $asset | |
\Twig_NodeInterface | $body | |
array | $inputs | |
array | $filters | |
string | $name | |
array | $attributes | |
int | $lineno | |
string | $tag |
Definition at line 188 of file AsseticTokenParser.php.
References Assetic\Extension\Twig\AsseticTokenParser\$tag.
Referenced by Assetic\Extension\Twig\AsseticTokenParser\createBodyNode().
Assetic\Extension\Twig\AsseticTokenParser::getTag | ( | ) |
Definition at line 139 of file AsseticTokenParser.php.
References Assetic\Extension\Twig\AsseticTokenParser\$tag.
Referenced by Assetic\Extension\Twig\AsseticTokenParser\parse(), and Assetic\Extension\Twig\AsseticTokenParser\testEndTag().
Assetic\Extension\Twig\AsseticTokenParser::parse | ( | \Twig_Token | $token | ) |
Definition at line 46 of file AsseticTokenParser.php.
References array, Assetic\Extension\Twig\AsseticTokenParser\createBodyNode(), and Assetic\Extension\Twig\AsseticTokenParser\getTag().
Assetic\Extension\Twig\AsseticTokenParser::testEndTag | ( | \Twig_Token | $token | ) |
Definition at line 144 of file AsseticTokenParser.php.
References array, and Assetic\Extension\Twig\AsseticTokenParser\getTag().
|
private |
Definition at line 23 of file AsseticTokenParser.php.
Referenced by Assetic\Extension\Twig\AsseticTokenParser\__construct().
|
private |
Definition at line 19 of file AsseticTokenParser.php.
Referenced by Assetic\Extension\Twig\AsseticTokenParser\__construct().
|
private |
Definition at line 21 of file AsseticTokenParser.php.
Referenced by Assetic\Extension\Twig\AsseticTokenParser\__construct().
|
private |
Definition at line 22 of file AsseticTokenParser.php.
Referenced by Assetic\Extension\Twig\AsseticTokenParser\__construct().
|
private |