Lines Matching defs:thread_comment
19 * @param Thread_comment $thread_comment
23 public function initial_save(Entity $thread_comment, $data) {
31 parent::initial_save($thread_comment, $data);
32 $thread_comment->thread->set_participant_flags($thread_comment->author, array('subscribent', 'commentator'));
37 $thread_comment->thread->set_state('closed');
40 $thread_comment->thread->set_state('rejected');
43 $thread_comment->thread->set_state('opened');
47 $thread_comment->thread->update_last_activity();
52 $thread_comment->mail_notify_add();
54 $thread_comment->thread->mail_notify_change_state($notify);
62 public function update_save(Entity $thread_comment, $data) {
66 $prev_type = $thread_comment->type;
68 parent::update_save($thread_comment, $data);
71 if ($thread_comment->type != 'comment' && $thread_comment->type != $prev_type) {
72 if ($thread_comment->type == 'cause') {
78 $task_type, $thread_comment->id);
82 $thread_comment->thread->update_last_activity();
118 FROM thread_comment
125 FROM thread_comment