ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
PhpIncludeInspection More...
Public Member Functions | |
__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) | |
Protected Attributes | |
$name | |
$source_node | |
Private Attributes | |
$context | |
$detection_state = false | |
PhpIncludeInspection
PhpIncludeInspection ilSimpleDetector of the petri net based workflow engine.
The simple detector does nothing but detect, if it was triggered. Until reset, the trigger method will return false, if the detection state is already fulfilled. (This would be proper behaviour in a petri net, still it has to be fleshed out how the system works out with 'ready-to-transit' nodes the do not transit because of later nodes not accepting ther impulse.
/
Definition at line 23 of file class.ilSimpleDetector.php.
ilSimpleDetector::__construct | ( | ilNode | $context | ) |
Default constructor.
ilNode | $context |
Definition at line 50 of file class.ilSimpleDetector.php.
References $context.
ilSimpleDetector::getActivated | ( | ) |
ilSimpleDetector::getContext | ( | ) |
Returns the parent object.
Type is ilNode, implements ilWorkflowEngineElement
Implements ilWorkflowEngineElement.
Definition at line 59 of file class.ilSimpleDetector.php.
References $context.
Referenced by ilEventDetector\trigger().
ilSimpleDetector::getDetectorState | ( | ) |
Returns if the current detector state is satisfied or not.
Implements ilDetector.
Definition at line 89 of file class.ilSimpleDetector.php.
References $detection_state.
Referenced by ilTimerDetector\trigger(), and ilEventDetector\trigger().
ilSimpleDetector::getName | ( | ) |
Implements ilWorkflowEngineElement.
Definition at line 151 of file class.ilSimpleDetector.php.
References $name.
ilSimpleDetector::getSourceNode | ( | ) |
ilSimpleDetector::onActivate | ( | ) |
Method is called, when the parent node is activated.
Implements ilDetector.
Definition at line 118 of file class.ilSimpleDetector.php.
ilSimpleDetector::onDeactivate | ( | ) |
Method is called, when the parent node is deactivated.
Implements ilDetector.
Definition at line 127 of file class.ilSimpleDetector.php.
ilSimpleDetector::setDetectorState | ( | $new_state | ) |
Sets a new detector state.
In this case, the only meaningful param is false, since it should only be set to true, if the detector was triggered. 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.
boolean | $new_state |
Definition at line 105 of file class.ilSimpleDetector.php.
Referenced by ilTimerDetector\onActivate(), ilEventDetector\onActivate(), ilTimerDetector\onDeactivate(), ilEventDetector\onDeactivate(), trigger(), ilCounterDetector\trigger(), ilTimerDetector\trigger(), and ilEventDetector\trigger().
ilSimpleDetector::setName | ( | $name | ) |
string | $name |
Implements ilWorkflowEngineElement.
Definition at line 143 of file class.ilSimpleDetector.php.
References $name.
ilSimpleDetector::setSourceNode | ( | $source_node | ) |
ilNode | $source_node |
Definition at line 167 of file class.ilSimpleDetector.php.
References $source_node.
ilSimpleDetector::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 74 of file class.ilSimpleDetector.php.
References setDetectorState().
|
private |
Definition at line 30 of file class.ilSimpleDetector.php.
Referenced by __construct(), ilTimerDetector\__construct(), ilEventDetector\__construct(), and getContext().
|
private |
Definition at line 37 of file class.ilSimpleDetector.php.
Referenced by getActivated(), and getDetectorState().
|
protected |
Definition at line 40 of file class.ilSimpleDetector.php.
|
protected |
Definition at line 43 of file class.ilSimpleDetector.php.
Referenced by getSourceNode(), and setSourceNode().