ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
PhpIncludeInspection More...
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... | |
![]() | |
__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) | |
Private Attributes | |
$expected_trigger_events = 1 | |
$actual_trigger_events = 0 | |
Additional Inherited Members | |
![]() | |
$name | |
$source_node | |
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 |
Definition at line 41 of file class.ilCounterDetector.php.
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 |
Implements ilDetector.
Definition at line 106 of file class.ilCounterDetector.php.
References ilSimpleDetector\setDetectorState().
|
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().