Switch_Node
- Type
- Class
- Namespace
- Craft
- Inherits
- Craft\Switch_Node »
Twig_Node
- Since
- 1.3
Class Switch_Node
Based on the rejected Twig pull request: https://github.com/fabpot/Twig/pull/185
See also http://craftcms.com
View source (opens new window)
# Public Methods
Method | Description |
---|---|
__construct() | |
compile() | Compiles the node to PHP. |
# __construct()
View source (opens new window)
Arguments
$value
(\Twig_NodeInterface
)$cases
(\Twig_NodeInterface
)$default
(\Twig_NodeInterface
)$lineno
(null (opens new window), string (opens new window))$tag
(null (opens new window))
Returns
Signature
public Craft\Switch_Node __construct ( \Twig_NodeInterface $value, \Twig_NodeInterface $cases, \Twig_NodeInterface $default = null, $lineno, $tag = null )
# compile()
Compiles the node to PHP.
View source (opens new window)
Arguments
$compiler
(\Twig_Compiler
)
Returns
Signature
public null compile ( \Twig_Compiler $compiler )