Lines Matching defs:task
9 public function get_from_task(Task $task) {
10 return $this->get_all(array('task_id' => $task->id), '', array('task' => $task));
20 if ($task_comment->task->thread_id != '' && $task_comment->task->type != 'preventive' && $task_comment->task->thread->state == 'closed') {
31 $task_comment->task->set_participant_flags($task_comment->author, array('subscribent', 'commentator'));
35 $task_comment->task->set_state('done');
42 $task_comment->task->set_state('opened');
49 $task_comment->task->update_virutal();
51 if ($task_comment->task->thread_id != '') {
52 $task_comment->task->thread->update_last_activity();
59 $task_comment->task->mail_notify_change_state($notify);
60 if ($task_comment->task->thread_id != '') {
61 $task_comment->task->thread->mail_notify_task_state_changed($task_comment->task);
73 if ($task_comment->task->thread_id != '' && $task_comment->task->type != 'preventive' && $task_comment->task->thread->state == 'closed') {
81 $task_comment->task->update_last_activity();
91 if ($obj->task->thread_id != '' && $obj->task->type != 'preventive' && $obj->task->thread->state == 'closed') {
99 $obj->task->update_last_activity();
102 $obj->task->remove_participant_flags($obj->author, array('commentator'));