Lines Matching refs:model
68 $this->thread = $this->model->threadFactory->get_one($this->thread_id);
77 $this->thread_comment = $this->model->thread_commentFactory->get_one($this->thread_comment_id);
87 public function __construct($model, $defaults=array()) {
88 parent::__construct($model, $defaults);
105 $this->original_poster = $this->model->user_nick;
157 if ($this->type == 'program' && $this->model->get_level() >= BEZ_AUTH_LEADER) {
162 if ($this->type != 'program' && $this->coordinator == $this->model->user_nick) {
194 if ($this->model->level < BEZ_AUTH_ADMIN && $this->private == '1') {
195 if ($this->get_participant($this->model->user_nick) === false &&
196 ($this->thread_id != '' && $this->__get('thread')->get_participant($this->model->user_nick) === false)) {
203 if ($this->assignee == $this->model->user_nick || $this->model->get_level() >= BEZ_AUTH_LEADER) {
207 if ($this->type == 'program' && $this->original_poster == $this->model->user_nick) {
217 if (($this->type != 'program' && $this->coordinator == $this->model->user_nick) ||
218 ($this->model->get_level() >= BEZ_AUTH_LEADER)) {
268 $this->assignee = $this->model->user_nick;
297 $this->closed_by = $this->model->user_nick;
300 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET state=?, closed_by=?, close_date=? WHERE id=?",
307 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET state=? WHERE id=?", $state, $this->id);
319 $this->model->sqlite->query('UPDATE task SET last_activity_date=? WHERE id=?',
356 $r = $this->model->sqlite->query($sql, $this->id);
357 $pars = $this->model->sqlite->res2arr($r);
375 $r = $this->model->sqlite->query($q, $this->id, $user_id);
376 $par = $this->model->sqlite->res2row($r);
386 $user_id = $this->model->user_nick;
414 $this->model->sqlite->query($sql, $this->id, $user_id);
425 if (!$this->model->userFactory->exists($user_id)) {
440 $participant['added_by'] = $this->model->user_nick;
444 $this->model->sqlite->storeEntry('task_participant', $values);
453 $this->model->sqlite->query($q, $this->id, $user_id);
473 $this->model->sqlite->query($q, $this->id, $user_id);
487 $r = $this->model->sqlite->query($q, $thread_id);
488 $thread = $this->model->sqlite->res_fetch_assoc($r);
499 $this->model->sqlite->query($q, $thread_id, $this->id);
508 $this->model->sqlite->query($q, $this->id);
517 $tpl = $this->model->action->get_tpl();
535 $tpl = $this->model->action->get_tpl();
550 $task_box = $this->model->action->bez_tpl_include('task_box', true);
558 $tpl = $this->model->action->get_tpl();
562 $content = $this->model->action->bez_tpl_include('mail/task', true);
568 $tpl = $this->model->action->get_tpl();
571 $tpl->set('who', $this->model->user_nick);
579 $tpl = $this->model->action->get_tpl();
592 $tpl = $this->model->action->get_tpl();
595 $tpl->set('who', $this->model->user_nick);
603 $tpl = $this->model->action->get_tpl();
605 $tpl->set('who', $this->model->user_nick);