Lines Matching defs:task_comment
18 public function initial_save(Entity $task_comment, $data) {
20 if ($task_comment->task->thread_id != '' && $task_comment->task->type != 'preventive' && $task_comment->task->thread->state == 'closed') {
29 parent::initial_save($task_comment, $data);
31 $task_comment->task->set_participant_flags($task_comment->author, array('subscribent', 'commentator'));
35 $task_comment->task->set_state('done');
36 if ($task_comment->id) {
38 $task_comment->id);
42 $task_comment->task->set_state('opened');
45 $task_comment->task_id);
49 $task_comment->task->update_virutal();
51 if ($task_comment->task->thread_id != '') {
52 $task_comment->task->thread->update_last_activity();
57 $task_comment->mail_notify_add();
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);
71 public function update_save(Entity $task_comment, $data) {
73 if ($task_comment->task->thread_id != '' && $task_comment->task->type != 'preventive' && $task_comment->task->thread->state == 'closed') {
79 parent::update_save($task_comment, $data);
81 $task_comment->task->update_last_activity();