ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilSimpleEmitter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 require_once './Services/WorkflowEngine/interfaces/ilEmitter.php';
7 require_once './Services/WorkflowEngine/interfaces/ilDetector.php';
9 require_once './Services/WorkflowEngine/interfaces/ilNode.php';
11 require_once './Services/WorkflowEngine/interfaces/ilWorkflowEngineElement.php';
12 
25 {
32 
38  private $context;
39 
41  protected $name;
42 
48  public function __construct(ilNode $context)
49  {
50  $this->context = $context;
51  }
52 
59  {
60  $this->target_detector = $target_detector;
61  }
62 
68  public function getTargetDetector()
69  {
71  }
72 
78  public function getContext()
79  {
80  return $this->context;
81  }
82 
86  public function emit()
87  {
88  $this->target_detector->trigger(array());
89  }
90 
94  public function setName($name)
95  {
96  $this->name = $name;
97  }
98 
102  public function getName()
103  {
104  return $this->name;
105  }
106 }
ilWorkflowEngineElement Interface is part of the petri net based workflow engine. ...
PhpIncludeInspection
setTargetDetector(ilDetector $target_detector)
Sets the target detector for this emitter.
emit()
Executes this emitter.
getTargetDetector()
Gets the currently set target detector of this emitter.
__construct(ilNode $context)
Default constructor.
PhpIncludeInspection
Definition: ilNode.php:25
Create styles array
The data for the language used.
getContext()
Returns a reference to the parent node of this emitter.
ilDetector Interface is part of the petri net based workflow engine.
Definition: ilDetector.php:16
ilEmitter Interface is part of the petri net based workflow engine.
Definition: ilEmitter.php:16