Lines Matching refs:task
52 * Save a task.
54 * @param array $data task informations as key value array.
95 * - md5 a single task
244 * @param string $page page id of the task
246 * @param string $commitmsg a optional message to the task completion
249 * false on undone a task
250 * or timestamp on task completion
279 return -2; //not allowed, task don't exist
283 // load task details and determine notify receivers
284 $task = $this->loadTasks(array('id' => $ID, 'md5' => $md5))[0];
285 $recs = (array)$task['users'];
286 $recs[] = $task['creator'];
292 // close the task
302 $this->sendMail($recs, 'close', $task, $name, $commitmsg);
305 // reopen the task
312 $this->sendMail($recs, 'reopen', $task, $name);
322 * @param array $task
326 public function sendMail($receivers, $type, $task, $user = '', $msg = '')
345 $subj .= sprintf($this->getLang('mail_' . $type), $task['text']);
360 isset($task['date']) ? $task['date'] : $this->getLang('nodue'),
361 $task['text'],
362 wl($task['page'], '', true, '&') . '#plgdo__' . $task['md5'],
454 foreach ($tasks as $task) {
455 if (empty($task['status'])) {
460 if (!empty($task['date']) && empty($task['status'])) {
461 if (strtotime($task['date']) < time()) {
471 * displays a small page task status view