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
コード例 #1
0
ファイル: workflow.php プロジェクト: amoskwa-smt/Workflow
 /**
  * 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);
 }
コード例 #2
0
 /**
  * Constructor.
  *
  * @param ezcWorkflow $workflow
  */
 public function __construct(ezcWorkflow $workflow)
 {
     parent::__construct();
     $workflow->accept($this);
 }
コード例 #3
0
 /**
  * Constructor.
  */
 public function __construct()
 {
     parent::__construct();
     $this->options = new ezcWorkflowVisitorVisualizationOptions();
 }
コード例 #4
0
ファイル: node.php プロジェクト: 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);
         }
     }
 }