Lines Matching refs:thread
14 /** @var bez\mdl\Thread $thread */
15 $thread = $this->model->threadFactory->get_one($this->get_param('id'));
17 if ($thread->acl_of('id') < BEZ_PERMISSION_VIEW) {
21 $this->tpl->set('thread', $thread);
22 if ($thread->type == 'project') {
26 $thread_comments = iterator_to_array($this->model->thread_commentFactory->get_from_thread($thread));
27 $tasks = $this->model->taskFactory->get_from_thread($thread);
42 $thread_comment = $this->model->thread_commentFactory->create_object(array('thread' => $thread));
54 $thread->set_participant_flags($this->model->user_nick, array('subscribent'));
59 $thread->remove_participant_flags($this->model->user_nick, array('subscribent'));
66 $thread->invite($client);
73 $thread->remove_participant($user_id);
83 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread));
89 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread));
101 $defaults = array('thread' => $thread);
104 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread));
120 $task = $this->model->taskFactory->get_one($this->get_param('tid'), array('thread' => $thread));
134 $task = $this->model->taskFactory->get_one($this->get_param('tid'), array('thread' => $thread));
138 if ($thread->type == 'issue') {
143 $this->model->threadFactory->delete($thread);
153 header('Location: ' . $this->url('thread', 'id', $thread->id) . $anchor);