| ILIAS
    release_6 Revision v6.24-5-g0c8bfefb3b8
    | 
@noinspection PhpIncludeInspection More...
 Inheritance diagram for ilTimerDetector:
 Inheritance diagram for ilTimerDetector: Collaboration diagram for ilTimerDetector:
 Collaboration diagram for ilTimerDetector:| Public Member Functions | |
| __construct ($context) | |
| Default constructor, passing the context to the parent constructor.  More... | |
| setTimerStart ($timer_start) | |
| Sets the timers start datetime.  More... | |
| getTimerStart () | |
| Returns the currently set timer start.  More... | |
| setTimerLimit ($timer_limit) | |
| Sets the timers limit.  More... | |
| getTimerLimit () | |
| Returns the currently set timers limit.  More... | |
| trigger ($params) | |
| Trigger this detector.  More... | |
| isListening () | |
| Returns if the detector is currently listening.  More... | |
| setListeningTimeframe ($listening_start, $listening_end) | |
| Sets the timeframe, in which the detector is listening.  More... | |
| onActivate () | |
| Method called on activation.  More... | |
| onDeactivate () | |
| Method called on deactivation.  More... | |
| setDbId ($a_id) | |
| Sets the database id of the detector.  More... | |
| getDbId () | |
| Returns the database id of the detector if set.  More... | |
| hasDbId () | |
| Returns, if the detector has a database id.  More... | |
| writeDetectorToDb () | |
| Passes this detector to the ilWorkflowDBHelper in order to write or update the detector data to the database.  More... | |
| deleteDetectorFromDb () | |
| Passes this detector to the ilWorkflowDbHelper in order to remove the detector data from the database.  More... | |
| getEvent () | |
| Returns the event type and content currently set to the detector.  More... | |
| getEventSubject () | |
| Get the event subject set to the detector.  More... | |
| getEventContext () | |
| Get the event context set to the detector.  More... | |
| getListeningTimeframe () | |
| Returns the listening timefrage of the detector.  More... | |
| isTimerRelative () | |
| setTimerRelative ($timer_relative) | |
|  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 () | |
| setDbId ($a_id) | |
| getDbId () | |
| hasDbId () | |
| writeDetectorToDb () | |
| deleteDetectorFromDb () | |
| isListening () | |
| getListeningTimeframe () | |
| setListeningTimeframe ($listening_start, $listening_end) | |
| getEvent () | |
| getEventSubject () | |
| getEventContext () | |
| Private Attributes | |
| $event_type = 'time_passed' | |
| Holds the type of the event to listen for.  More... | |
| $event_content = 'time_passed' | |
| $event_subject_type = 'none' | |
| $event_subject_identifier = '0' | |
| $event_context_type = 'none' | |
| $event_context_identifier = '0' | |
| $timer_relative | |
| $timer_start = 0 | |
| $timer_limit = 0 | |
| $listening_start = 0 | |
| $listening_end = 0 | |
| $db_id = null | |
| Additional Inherited Members | |
|  Protected Attributes inherited from ilSimpleDetector | |
| $name | |
| $source_node | |
@noinspection PhpIncludeInspection
@noinspection PhpIncludeInspection ilTimerDetector is part of the petri net based workflow engine.
This detector implements a timer-feature. It has a start (date)time and a time limit.
/
Definition at line 20 of file class.ilTimerDetector.php.
| ilTimerDetector::__construct | ( | $context | ) | 
Default constructor, passing the context to the parent constructor.
| ilNode | $context | 
Definition at line 88 of file class.ilTimerDetector.php.
References ilSimpleDetector\$context, and ILIAS\GlobalScreen\Provider\__construct().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilTimerDetector::deleteDetectorFromDb | ( | ) | 
Passes this detector to the ilWorkflowDbHelper in order to remove the detector data from the database.
Implements ilExternalDetector.
Definition at line 284 of file class.ilTimerDetector.php.
Referenced by onDeactivate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilTimerDetector::getDbId | ( | ) | 
Returns the database id of the detector if set.
Implements ilExternalDetector.
Definition at line 246 of file class.ilTimerDetector.php.
References $db_id.
| ilTimerDetector::getEvent | ( | ) | 
Returns the event type and content currently set to the detector.
Implements ilExternalDetector.
Definition at line 295 of file class.ilTimerDetector.php.
| ilTimerDetector::getEventContext | ( | ) | 
Get the event context set to the detector.
Implements ilExternalDetector.
Definition at line 315 of file class.ilTimerDetector.php.
| ilTimerDetector::getEventSubject | ( | ) | 
Get the event subject set to the detector.
Implements ilExternalDetector.
Definition at line 305 of file class.ilTimerDetector.php.
| ilTimerDetector::getListeningTimeframe | ( | ) | 
Returns the listening timefrage of the detector.
Implements ilExternalDetector.
Definition at line 324 of file class.ilTimerDetector.php.
| ilTimerDetector::getTimerLimit | ( | ) | 
Returns the currently set timers limit.
Definition at line 128 of file class.ilTimerDetector.php.
References $timer_limit.
| ilTimerDetector::getTimerStart | ( | ) | 
Returns the currently set timer start.
Definition at line 108 of file class.ilTimerDetector.php.
References $timer_start.
| ilTimerDetector::hasDbId | ( | ) | 
Returns, if the detector has a database id.
Implements ilExternalDetector.
Definition at line 261 of file class.ilTimerDetector.php.
| ilTimerDetector::isListening | ( | ) | 
Returns if the detector is currently listening.
Implements ilExternalDetector.
Definition at line 161 of file class.ilTimerDetector.php.
| ilTimerDetector::isTimerRelative | ( | ) | 
Definition at line 332 of file class.ilTimerDetector.php.
References $timer_relative.
| ilTimerDetector::onActivate | ( | ) | 
Method called on activation.
Reimplemented from ilSimpleDetector.
Definition at line 204 of file class.ilTimerDetector.php.
References $timer_limit, $timer_start, ilSimpleDetector\setDetectorState(), and writeDetectorToDb().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilTimerDetector::onDeactivate | ( | ) | 
Method called on deactivation.
Reimplemented from ilSimpleDetector.
Definition at line 225 of file class.ilTimerDetector.php.
References deleteDetectorFromDb(), and ilSimpleDetector\setDetectorState().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilTimerDetector::setDbId | ( | $a_id | ) | 
Sets the database id of the detector.
| integer | $a_id | 
Implements ilExternalDetector.
Definition at line 236 of file class.ilTimerDetector.php.
| ilTimerDetector::setListeningTimeframe | ( | $listening_start, | |
| $listening_end | |||
| ) | 
Sets the timeframe, in which the detector is listening.
| integer | $listening_start | Unix timestamp start of listening period. | 
| integer | $listening_end | Unix timestamp end of listening period. | 
ilWorkflowInvalidArgumentException
Implements ilExternalDetector.
Definition at line 189 of file class.ilTimerDetector.php.
References $listening_end, and $listening_start.
| ilTimerDetector::setTimerLimit | ( | $timer_limit | ) | 
Sets the timers limit.
| integer | $timer_limit | Seconds of the timers runtime. | 
Definition at line 118 of file class.ilTimerDetector.php.
References $timer_limit.
| ilTimerDetector::setTimerRelative | ( | $timer_relative | ) | 
| bool | $timer_relative | 
Definition at line 340 of file class.ilTimerDetector.php.
References $timer_relative.
| ilTimerDetector::setTimerStart | ( | $timer_start | ) | 
Sets the timers start datetime.
| integer | $timer_start | Unix timestamp. | 
Definition at line 98 of file class.ilTimerDetector.php.
References $timer_start.
| ilTimerDetector::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 143 of file class.ilTimerDetector.php.
References ilSimpleDetector\getDetectorState(), and ilSimpleDetector\setDetectorState().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilTimerDetector::writeDetectorToDb | ( | ) | 
Passes this detector to the ilWorkflowDBHelper in order to write or update the detector data to the database.
Implements ilExternalDetector.
Definition at line 274 of file class.ilTimerDetector.php.
Referenced by onActivate().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 81 of file class.ilTimerDetector.php.
Referenced by getDbId().
| 
 | private | 
Definition at line 33 of file class.ilTimerDetector.php.
| 
 | private | 
Definition at line 45 of file class.ilTimerDetector.php.
| 
 | private | 
Definition at line 42 of file class.ilTimerDetector.php.
| 
 | private | 
Definition at line 39 of file class.ilTimerDetector.php.
| 
 | private | 
Definition at line 36 of file class.ilTimerDetector.php.
| 
 | private | 
Holds the type of the event to listen for.
In case of this detector class, it is set up to listen to a default 'time passed' event. It has no means of modifying it.
Definition at line 30 of file class.ilTimerDetector.php.
| 
 | private | 
Definition at line 74 of file class.ilTimerDetector.php.
Referenced by setListeningTimeframe().
| 
 | private | 
Definition at line 68 of file class.ilTimerDetector.php.
Referenced by setListeningTimeframe().
| 
 | private | 
Definition at line 62 of file class.ilTimerDetector.php.
Referenced by getTimerLimit(), onActivate(), and setTimerLimit().
| 
 | private | 
Definition at line 48 of file class.ilTimerDetector.php.
Referenced by isTimerRelative(), and setTimerRelative().
| 
 | private | 
Definition at line 55 of file class.ilTimerDetector.php.
Referenced by getTimerStart(), onActivate(), and setTimerStart().