visit() is called on each of the nodes in the workflow in a top-down, depth-first fashion. Start the processing of the workflow by calling accept() on the workflow passing the visitor object as the sole parameter.
Inheritance: implements Countable
Exemplo n.º 1
0
 /**
  * Overridden implementation of accept() calls
  * accept on the start node.
  *
  * @param ezcWorkflowVisitor $visitor
  */
 public function accept(ezcWorkflowVisitor $visitor)
 {
     $visitor->visit($this);
     $this->properties['startNode']->accept($visitor);
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param ezcWorkflow $workflow
  */
 public function __construct(ezcWorkflow $workflow)
 {
     parent::__construct();
     $workflow->accept($this);
 }
Exemplo n.º 3
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->options = new ezcWorkflowVisitorVisualizationOptions();
 }
Exemplo n.º 4
0
Arquivo: node.php Projeto: bmdevel/ezc
 /**
  * Reimplementation of accept() calls accept on all out nodes.
  *
  * @param ezcWorkflowVisitor $visitor
  */
 public function accept(ezcWorkflowVisitor $visitor)
 {
     if ($visitor->visit($this)) {
         foreach ($this->outNodes as $outNode) {
             $outNode->accept($visitor);
         }
     }
 }