5 require_once
'./Services/WorkflowEngine/classes/detectors/class.ilSimpleDetector.php';
43 parent::__construct($context);
53 $this->expected_trigger_events = (int) $count;
89 if ($this->expected_trigger_events < (
int) $count) {
90 $this->actual_trigger_events = $count;
108 if ($this->actual_trigger_events < $this->expected_trigger_events) {
109 $this->actual_trigger_events++;
110 if ($this->actual_trigger_events == $this->expected_trigger_events) {
setExpectedTriggerEvents($count)
Set the expected trigger event count before the detector is satisfied.
trigger($params)
Trigger this detector.
getActualTriggerEvents()
Returns the actual trigger events of the detector.
__construct(ilNode $context)
Default constructor, passing the context to the parent constructor.
setDetectorState($new_state)
Sets a new detector state.
getExpectedTriggerEvents()
Returns the currently set number of expected trigger events.
setActualTriggerEvents($count)
Sets the actual count of trigger events already taken place.