*/
private function executeCurrentTask () {
// Update no task by default
- $updateTask = FALSE;
+ $updateTask = false;
// Is the current task valid?
if (!$this->getListInstance()->getIterator()->valid()) {
$currentTask = $this->getListInstance()->getIterator()->current();
// Is the task not yet started?
- if ($currentTask['task_started'] === FALSE) {
+ if ($currentTask['task_started'] === false) {
// Determine difference between current time and registration
$diff = ($this->getMilliTime() - $currentTask['task_registered']) * 1000;
} // END - if
// Launch the task and mark it as updated
- $currentTask['task_started'] = TRUE;
- $updateTask = TRUE;
+ $currentTask['task_started'] = true;
+ $updateTask = true;
// Debug message
self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TASK-HANDLER[' . __METHOD__ . ':' . __LINE__ . ']: Task ' . $currentTask['id'] . ' started with startup_delay=' . $currentTask['task_startup_delay'] . 'ms');
// Is the interval delay reached?
if ((($diff < $currentTask['task_interval_delay']) && ($currentTask['task_max_runs'] == 0)) || (($currentTask['task_max_runs'] > 0) && ($currentTask['task_total_runs'] == $currentTask['task_max_runs']))) {
// Should we update the task from startup?
- if ($updateTask === TRUE) {
+ if ($updateTask === true) {
// Update the task before leaving
$this->updateTask($currentTask);
} // END - if
// Identifier for the generateHash() method
'id' => $taskName,
// Whether the task is started
- 'task_started' => FALSE,
+ 'task_started' => false,
// Whether the task is paused (not yet implemented)
- 'task_paused' => FALSE,
+ 'task_paused' => false,
// Whether the task can be paused (not yet implemented)
- 'task_pauseable' => TRUE,
+ 'task_pauseable' => true,
// Timestamp of registration
'task_registered' => $this->getMilliTime(),
// Last activity timestamp