Twig API
Class

Twig_NodeVisitor_SafeAnalysis

class Twig_NodeVisitor_SafeAnalysis implements Twig_NodeVisitorInterface

Methods

setSafeVars($safeVars)

getSafe(Twig_NodeInterface $node)

Twig_NodeInterface enterNode(Twig_NodeInterface $node, Twig_Environment $env)

Called before child nodes are visited.

Twig_NodeInterface leaveNode(Twig_NodeInterface $node, Twig_Environment $env)

Called after child nodes are visited.

integer getPriority()

Returns the priority for this visitor.

Details

at line 8
public setSafeVars($safeVars)

Parameters

$safeVars

at line 13
public getSafe(Twig_NodeInterface $node)

Parameters

Twig_NodeInterface $node

at line 45
public Twig_NodeInterface enterNode(Twig_NodeInterface $node, Twig_Environment $env)

Called before child nodes are visited.

Parameters

Twig_NodeInterface $node The node to visit
Twig_Environment $env The Twig environment instance

Return Value

Twig_NodeInterface The modified node

at line 50
public Twig_NodeInterface leaveNode(Twig_NodeInterface $node, Twig_Environment $env)

Called after child nodes are visited.

Parameters

Twig_NodeInterface $node The node to visit
Twig_Environment $env The Twig environment instance

Return Value

Twig_NodeInterface The modified node

at line 129
public integer getPriority()

Returns the priority for this visitor.

Priority should be between -10 and 10 (0 is the default).

Return Value

integer The priority level