Lines Matching refs:this
20 if ($this->task_id == null) {
23 if ($this->task == null) {
24 $this->task = $this->model->taskFactory->get_one($this->task_id);
26 return $this->task;
34 $this->validator->set_rules(array(
39 if ($this->id === NULL) {
41 $this->author = $this->model->user_nick;
42 $this->create_date = date('c');
43 $this->last_modification_date = $this->create_date;
49 $this->task = $defaults['task'];
50 $this->task_id = $this->task->id;
53 if ($this->author == $this->model->user_nick || $this->model->get_level() >= BEZ_AUTH_LEADER) {
54 $this->acl->grant('content', BEZ_PERMISSION_CHANGE);
58 if (isset($defaults['task']) && $this->task_id == $defaults['task']->id) {
59 $this->task = $defaults['task'];
63 if ($this->author == $this->model->user_nick || $this->model->get_level() >= BEZ_AUTH_LEADER) {
64 $this->acl->grant('id', BEZ_PERMISSION_DELETE);
65 $this->acl->grant('content', BEZ_PERMISSION_CHANGE);
72 $this->purge();
76 $tpl = $this->model->action->get_tpl();
78 return $tpl->url('task', 'tid', $this->task_id) . '#zk' . $this->id;
82 return '#zk' . $this->id;
86 $tpl = $this->model->action->get_tpl();
89 $html = p_render('bez_xhtmlmail', p_get_instructions($this->content), $info);
91 $tpl->set('who', $this->author);
92 $tpl->set('when', $this->create_date);
94 $content = $this->model->action->bez_tpl_include('mail/task_comment', true);
96 $this->task->mail_notify($content, false, $info['img']);