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

Public Methods

MethodDescription
__construct()
compile()Compiles the node to PHP.

__construct()

View source

Arguments

  • $value (\Twig_NodeInterface)
  • $cases (\Twig_NodeInterface)
  • $default (\Twig_NodeInterface)
  • $lineno (null, string)
  • $tag (null)

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

Arguments

  • $compiler (\Twig_Compiler)

Returns

null

Signature

public null compile ( \Twig_Compiler $compiler )