PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Protected Member Functions | Protected Attributes
Twig_NodeTraverser Class Reference

Twig_NodeTraverser is a node traverser. More...

Public Member Functions

 __construct (Twig_Environment $env, array $visitors=array())
 Constructor. More...
 addVisitor (Twig_NodeVisitorInterface $visitor)
 Adds a visitor. More...
 traverse (Twig_NodeInterface $node)
 Traverses a node and calls the registered visitors. More...

Protected Member Functions

 traverseForVisitor (Twig_NodeVisitorInterface $visitor, Twig_NodeInterface $node=null)

Protected Attributes


Detailed Description

Twig_NodeTraverser is a node traverser.

It visits all nodes and their children and call the given visitor for each.

Fabien Potencier

Definition at line 19 of file NodeTraverser.php.

Constructor & Destructor Documentation

__construct ( Twig_Environment  $env,
array  $visitors = array() 


Twig_Environment$envA Twig_Environment instance
array$visitorsAn array of Twig_NodeVisitorInterface instances

Definition at line 30 of file NodeTraverser.php.

Member Function Documentation

addVisitor ( Twig_NodeVisitorInterface  $visitor)

Adds a visitor.

Twig_NodeVisitorInterface$visitorA Twig_NodeVisitorInterface instance

Definition at line 44 of file NodeTraverser.php.

traverse ( Twig_NodeInterface  $node)

Traverses a node and calls the registered visitors.

Twig_NodeInterface$nodeA Twig_NodeInterface instance

Definition at line 58 of file NodeTraverser.php.

traverseForVisitor ( Twig_NodeVisitorInterface  $visitor,
Twig_NodeInterface  $node = null 

Definition at line 70 of file NodeTraverser.php.

Field Documentation


Definition at line 21 of file NodeTraverser.php.


Definition at line 22 of file NodeTraverser.php.

The documentation for this class was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and has been generated by Doxygen on Thu Oct 15 2015 14:41:45 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.