| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
@noinspection PhpIncludeInspection More...
 Inheritance diagram for ilCounterDetector:
 Inheritance diagram for ilCounterDetector: Collaboration diagram for ilCounterDetector:
 Collaboration diagram for ilCounterDetector:| Public Member Functions | |
| __construct (ilNode $context) | |
| Default constructor, passing the context to the parent constructor.  More... | |
| setExpectedTriggerEvents ($count) | |
| Set the expected trigger event count before the detector is satisfied.  More... | |
| getExpectedTriggerEvents () | |
| Returns the currently set number of expected trigger events.  More... | |
| getActualTriggerEvents () | |
| Returns the actual trigger events of the detector.  More... | |
| setActualTriggerEvents ($count) | |
| Sets the actual count of trigger events already taken place.  More... | |
| trigger ($params) | |
| Trigger this detector.  More... | |
|  Public Member Functions inherited from ilSimpleDetector | |
| __construct (ilNode $context) | |
| Default constructor.  More... | |
| getContext () | |
| Returns the parent object.  More... | |
| trigger ($params) | |
| Trigger this detector.  More... | |
| getDetectorState () | |
| Returns if the current detector state is satisfied or not.  More... | |
| setDetectorState ($new_state) | |
| Sets a new detector state.  More... | |
| onActivate () | |
| Method is called, when the parent node is activated.  More... | |
| onDeactivate () | |
| Method is called, when the parent node is deactivated.  More... | |
| getActivated () | |
| setName ($name) | |
| getName () | |
| getSourceNode () | |
| setSourceNode ($source_node) | |
| trigger ($params) | |
| getDetectorState () | |
| onActivate () | |
| onDeactivate () | |
| getContext () | |
| This method returns the context of the element.  More... | |
| setName ($name) | |
| getName () | |
| Private Attributes | |
| $expected_trigger_events = 1 | |
| $actual_trigger_events = 0 | |
| Additional Inherited Members | |
|  Protected Attributes inherited from ilSimpleDetector | |
| $name | |
| $source_node | |
@noinspection PhpIncludeInspection
Class ilCounterDetector
This detector has to be triggered n times before it is satisfied. It is used in looping controls and the like. This detector must not be used as external detector.
/
Definition at line 19 of file class.ilCounterDetector.php.
| ilCounterDetector::__construct | ( | ilNode | $context | ) | 
Default constructor, passing the context to the parent constructor.
| ilNode | $context | 
Reimplemented from ilSimpleDetector.
Definition at line 41 of file class.ilCounterDetector.php.
References ilSimpleDetector\$context.
| ilCounterDetector::getActualTriggerEvents | ( | ) | 
Returns the actual trigger events of the detector.
Definition at line 72 of file class.ilCounterDetector.php.
References $actual_trigger_events.
| ilCounterDetector::getExpectedTriggerEvents | ( | ) | 
Returns the currently set number of expected trigger events.
Definition at line 61 of file class.ilCounterDetector.php.
References $expected_trigger_events.
| ilCounterDetector::setActualTriggerEvents | ( | $count | ) | 
Sets the actual count of trigger events already taken place.
Reason this method exists, is to allow the workflow controller to "fast forward" workflows to set a non-default state. I.e. a workflow has to be set into a state in the middle of running. Use with care.
| integer | $count | Number of past trigger events. | 
Definition at line 87 of file class.ilCounterDetector.php.
| ilCounterDetector::setExpectedTriggerEvents | ( | $count | ) | 
Set the expected trigger event count before the detector is satisfied.
| integer | $count | 
Definition at line 51 of file class.ilCounterDetector.php.
| ilCounterDetector::trigger | ( | $params | ) | 
Trigger this detector.
Params are an array. These are part of the interface but ignored here.
| array | $params | 
Reimplemented from ilSimpleDetector.
Definition at line 109 of file class.ilCounterDetector.php.
References ilSimpleDetector\setDetectorState().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Definition at line 34 of file class.ilCounterDetector.php.
Referenced by getActualTriggerEvents().
| 
 | private | 
Definition at line 26 of file class.ilCounterDetector.php.
Referenced by getExpectedTriggerEvents().