Lines Matching refs:this

27             if ($this->thread_id == null) {
30 if ($this->thread == null) {
31 $this->thread = $this->model->threadFactory->get_one($this->thread_id);
33 return $this->thread;
36 return $this->$property;
45 $this->validator->set_rules(array(
53 if ($this->id === NULL) {
55 $this->author = $this->model->user_nick;
56 $this->create_date = date('c');
57 $this->last_modification_date = $this->create_date;
63 $this->thread = $defaults['thread'];
64 $this->thread_id = $this->thread->id;
65 $this->coordinator = $this->thread->coordinator;
67 $this->acl->grant('content', BEZ_PERMISSION_CHANGE);
68 if ($this->coordinator == $this->model->user_nick) {
69 $this->acl->grant('type', BEZ_PERMISSION_CHANGE);
73 if (isset($defaults['thread']) && $this->thread_id == $defaults['thread']->id) {
74 $this->thread = $defaults['thread'];
78 if ($this->author == $this->model->user_nick && $this->type == 'comment') {
80 if ($this->task_count == '0') {
81 $this->acl->grant('id', BEZ_PERMISSION_DELETE);
83 $this->acl->grant('content', BEZ_PERMISSION_CHANGE);
86 if ($this->coordinator == $this->model->user_nick) {
88 if ($this->task_count == '0') {
89 $this->acl->grant('id', BEZ_PERMISSION_DELETE);
91 $this->acl->grant('content', BEZ_PERMISSION_CHANGE);
92 $this->acl->grant('type', BEZ_PERMISSION_CHANGE);
99 if ($this->acl_of('type') < BEZ_PERMISSION_CHANGE) {
103 $this->purge();
107 $tpl = $this->model->action->get_tpl();
108 return $tpl->url('thread', 'id', $this->thread_id) . '#k' . $this->id;
112 return '#k' . $this->id;
116 $tpl = $this->model->action->get_tpl();
119 $html = p_render('bez_xhtmlmail', p_get_instructions($this->content), $info);
121 $tpl->set('who', $this->author);
122 $tpl->set('when', $this->create_date);
123 if ($this->type == 'comment') {
131 $content = $this->model->action->bez_tpl_include('mail/thread_comment', true);
133 $this->thread->mail_notify($content, false, $info['img']);