ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
5require_once './Services/WorkflowEngine/interfaces/ilEmitter.php';
7require_once './Services/WorkflowEngine/interfaces/ilDetector.php';
9require_once './Services/WorkflowEngine/interfaces/ilNode.php';
11require_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}
An exception for terminatinating execution or to throw for unit testing.
@noinspection PhpIncludeInspection
getContext()
Returns a reference to the parent node of this emitter.
setTargetDetector(ilDetector $target_detector)
Sets the target detector for this emitter.
__construct(ilNode $context)
Default constructor.
getTargetDetector()
Gets the currently set target detector of this emitter.
emit()
Executes this emitter.
ilDetector Interface is part of the petri net based workflow engine.
Definition: ilDetector.php:17
ilEmitter Interface is part of the petri net based workflow engine.
Definition: ilEmitter.php:17
@noinspection PhpIncludeInspection
Definition: ilNode.php:26
ilWorkflowEngineElement Interface is part of the petri net based workflow engine.