Lines Matching defs:thread_id
28 protected $thread_id, $thread_comment_id, $task_program_id;
47 'thread_id', 'thread_comment_id', 'task_program_id');
64 if ($this->thread_id == null) {
67 if ($this->thread == null || $this->thread_id != $this->thread->id) {
68 $this->thread = $this->model->threadFactory->get_one($this->thread_id);
114 $this->thread_id = $this->thread->id;
138 if ($this->thread_id == '') {
177 if (isset($defaults['thread']) && $this->thread_id == $defaults['thread']->id) {
185 if ($this->thread_id == '') {
196 ($this->thread_id != '' && $this->__get('thread')->get_participant($this->model->user_nick) === false)) {
261 if ($this->thread_id == '') {
324 if ($this->thread_id != '' && $this->type != 'preventive' && $this->thread->state == 'closed') {
477 public function pin($thread_id) {
478 if ($this->acl_of('thread_id') < BEZ_PERMISSION_CHANGE) {
481 if ($this->thread_id != '') {
487 $r = $this->model->sqlite->query($q, $thread_id);
490 throw new ValidationException("task", array('thread_id' => 'pin_task'));
494 $q = "UPDATE task SET type='correction', thread_id=?";
499 $this->model->sqlite->query($q, $thread_id, $this->id);
503 if ($this->acl_of('thread_id') < BEZ_PERMISSION_CHANGE) {
507 $q = "UPDATE task SET type='program', thread_id='', thread_comment_id='', private=0 WHERE id=?";
523 if ($this->thread_id != '') {
524 $ret .= '#'.$this->thread_id . ' ';