Lines Matching defs:thread
31 protected $thread;
63 if ($property == 'thread') {
67 if ($this->thread == null || $this->thread_id != $this->thread->id) {
68 $this->thread = $this->model->threadFactory->get_one($this->thread_id);
70 return $this->thread;
112 if (isset($defaults['thread'])) {
113 $this->thread = $defaults['thread'];
114 $this->thread_id = $this->thread->id;
115 $this->coordinator = $this->thread->coordinator;
117 if ($this->thread->private == '1') {
177 if (isset($defaults['thread']) && $this->thread_id == $defaults['thread']->id) {
178 $this->thread = $defaults['thread'];
196 ($this->thread_id != '' && $this->__get('thread')->get_participant($this->model->user_nick) === false)) {
324 if ($this->thread_id != '' && $this->type != 'preventive' && $this->thread->state == 'closed') {
396 //thread not saved yet
398 throw new \Exception('cannot remove flags from not saved thread');
419 //thread not saved yet
421 throw new \Exception('cannot add flags to not saved thread');
458 //thread not saved yet
460 throw new \Exception('cannot remove flags from not saved thread');
482 throw new ConsistencyViolationException('task already pinned to thread');
485 //check if thread exists and isn't closed
488 $thread = $this->model->sqlite->res_fetch_assoc($r);
489 if (!$thread) {
493 //if thread was private task is also private
495 if ($thread['private']) {