Lines Matching refs:model

6 if ($this->model->get_level() < BEZ_AUTH_USER) {
15 $thread = $this->model->threadFactory->get_one($this->get_param('id'));
26 $thread_comments = iterator_to_array($this->model->thread_commentFactory->get_from_thread($thread));
27 $tasks = $this->model->taskFactory->get_from_thread($thread);
39 $this->tpl->set('task_programs', $this->model->task_programFactory->get_all([], 'name'));
42 $thread_comment = $this->model->thread_commentFactory->create_object(array('thread' => $thread));
47 $this->model->thread_commentFactory->initial_save($thread_comment, $_POST);
54 $thread->set_participant_flags($this->model->user_nick, array('subscribent'));
59 $thread->remove_participant_flags($this->model->user_nick, array('subscribent'));
68 $this->add_notification($this->model->userFactory->get_user_email($client), $this->getLang('invitation_has_been_send'));
75 $name = $this->model->userFactory->get_user_full_name($user_id);
83 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread));
84 $this->model->thread_commentFactory->delete($thread_comment);
89 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread));
94 $this->model->thread_commentFactory->update_save($thread_comment, $_POST);
104 $thread_comment = $this->model->thread_commentFactory->get_one($this->get_param('kid'), array('thread' => $thread));
108 $task = $this->model->taskFactory->create_object($defaults);
113 $this->model->taskFactory->initial_save($task, $_POST);
120 $task = $this->model->taskFactory->get_one($this->get_param('tid'), array('thread' => $thread));
127 $this->model->taskFactory->update_save($task, $_POST);
134 $task = $this->model->taskFactory->get_one($this->get_param('tid'), array('thread' => $thread));
135 $this->model->taskFactory->delete($task);
143 $this->model->threadFactory->delete($thread);