ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
PhpIncludeInspection More...
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) | |
Private Attributes | |
$event_type = 'time_passed' | |
$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 | |
PhpIncludeInspection
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.
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().
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.
References array.
ilTimerDetector::getEventContext | ( | ) |
Get the event context set to the detector.
Implements ilExternalDetector.
Definition at line 315 of file class.ilTimerDetector.php.
References array.
ilTimerDetector::getEventSubject | ( | ) |
Get the event subject set to the detector.
Implements ilExternalDetector.
Definition at line 305 of file class.ilTimerDetector.php.
References array.
ilTimerDetector::getListeningTimeframe | ( | ) |
Returns the listening timefrage of the detector.
Implements ilExternalDetector.
Definition at line 324 of file class.ilTimerDetector.php.
References array.
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.
References time.
ilTimerDetector::isTimerRelative | ( | ) |
ilTimerDetector::onActivate | ( | ) |
Method called on activation.
Implements ilDetector.
Definition at line 204 of file class.ilTimerDetector.php.
References $timer_limit, $timer_start, ilSimpleDetector\setDetectorState(), time, and writeDetectorToDb().
ilTimerDetector::onDeactivate | ( | ) |
Method called on deactivation.
Implements ilDetector.
Definition at line 225 of file class.ilTimerDetector.php.
References deleteDetectorFromDb(), and ilSimpleDetector\setDetectorState().
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. |
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 |
Implements ilDetector.
Definition at line 143 of file class.ilTimerDetector.php.
References ilSimpleDetector\getDetectorState(), ilSimpleDetector\setDetectorState(), and time.
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().
|
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 |
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().