Rewrite continued:
[core.git] / framework / main / classes / handler / tasks / class_TaskHandler.php
index b0fd94443fbd957133d0a68e47c5c66d454563c8..2c96d96acc2282add27511fa52b1a179c4db2b13 100644 (file)
@@ -91,7 +91,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         */
        private function executeCurrentTask () {
                // Update no task by default
-               $updateTask = FALSE;
+               $updateTask = false;
 
                // Is the current task valid?
                if (!$this->getListInstance()->getIterator()->valid()) {
@@ -103,7 +103,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                $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;
 
@@ -115,8 +115,8 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                        } // 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');
@@ -131,7 +131,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                // 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
@@ -239,11 +239,11 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
                        // 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