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

Returns

Craft\Switch_Node

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

null (opens new window)

Signature

public null compile ( \Twig_Compiler $compiler )