Lines Matching refs:task

65         $task = $this->readTask($id);
66 return $this->statusLabel($task['status']);
93 if (!$task = $this->readTask($id)) continue;
95 $date = $task['date']['due'];
96 $responsible = $this->_isResponsible($task['user']);
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;
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;
134 $result[$task['key']] = array(
137 'user' => $task['user']['name'],
138 'status' => $this->statusLabel($task['status']),
139 'priority' => $task['priority'],
141 'file' => $task['file'],
303 * @param array $task data array of the task
308 function _notify($task) { argument
322 if(!empty($task['date']['due'])) {
324 $text = str_replace('@DATE@', strftime($dformat, $task['date']['due']), $text);
328 $text = str_replace('@NAME@', $task['user']['name'], $text);
329 $text = str_replace('@STATUS@', $this->statusLabel($task['status']), $text);
330 $text = str_replace('@PRIORITY@', $this->priorityLabel($task['priority']), $text);
335 if ($task['status'] == 0) $subject .= $this->getLang('mail_newtask');
344 function _vtodo($id, $task) { argument
357 if ($task['date']['created'])
358 $ret .= 'CREATED:'.$this->_vdate($task['date']['created']).CRLF;
359 if ($task['date']['modified'])
360 $ret .= 'LAST-MODIFIED:'.$this->_vdate($task['date']['modified']).CRLF;
361 if ($task['date']['due'])
362 $ret .= 'DUE:'.$this->_vdate($task['date']['due']).CRLF;
363 if ($task['date']['completed'])
364 $ret .= 'COMPLETED:'.$this->_vdate($task['date']['completed']).CRLF;
365 if ($task['user']) $ret .= 'ORGANIZER;CN="'.$this->_vsc($task['user']['name']).'":'.
366 'MAILTO:'.$task['user']['mail'].CRLF;
367 $ret .= 'STATUS:'.$this->_vstatus($task['status']).CRLF;
368 if (is_numeric($task['priority']))
369 $ret .= 'PRIORITY:'.(7 - ($task['priority'] * 2)).CRLF;