Lines Matching full:status
18 'desc' => 'returns the status of the task',
47 'desc' => 'returns the status label for a given integer',
48 'params' => array('status' => 'integer'),
58 return $this->getLang('status');
62 * Returns the status of the task
66 return $this->statusLabel($task['status']);
98 // Check status in detail if filter is not 'all'
102 if ($task['status'] != -1) continue;
105 if ($task['status'] != 1 && $task['status'] != 2) continue;
108 if ($task['status'] != 2) continue;
111 if ($task['status'] != 3) continue;
114 if ($task['status'] != 4) continue;
116 // No pure status filter, skip done and closed tasks
117 if (($task['status'] < 0) || ($task['status'] > 2)) continue;
125 if (($filter == 'new') && ($task['user']['name'] || ($task['status'] != 0))) continue;
129 if (!$date || ($date > time()) || ($task['status'] > 2)) continue;
138 'status' => $this->statusLabel($task['status']),
197 if (!isset($data['status'])) { // make sure we don't overwrite status
199 $data['status'] = $current['status'];
200 } elseif ($data['status'] == 3) { // set task completion time
219 * Returns the label of a status
221 function statusLabel($status) { argument
222 switch ($status) {
329 $text = str_replace('@STATUS@', $this->statusLabel($task['status']), $text);
335 if ($task['status'] == 0) $subject .= $this->getLang('mail_newtask');
367 $ret .= 'STATUS:'.$this->_vstatus($task['status']).CRLF;
393 * Returns VTODO status
395 function _vstatus($status) { argument
396 switch ($status) {