Lines Matching refs:id

12     protected $id;
29 return array('id',
74 if ($this->id === NULL) {
158 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET state=?, closed_by=?, close_date=? WHERE id=?",
162 $this->id);
167 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET state=? WHERE id=?", $state, $this->id);
184 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET private=? WHERE id=?", $private, $this->id);
187 $this->model->sqlite->query("UPDATE task SET private=? WHERE thread_id=?", $private, $this->id);
192 $this->model->sqlite->query('UPDATE thread SET last_activity_date=? WHERE id=?',
193 $this->last_activity_date, $this->id);
197 if ($this->id === NULL) {
211 $r = $this->model->sqlite->query($sql, $this->id);
222 if ($this->id === NULL) {
230 $r = $this->model->sqlite->query($q, $this->id, $user_id);
252 if ($this->id === NULL) {
269 $this->model->sqlite->query($sql, $this->id, $user_id);
275 if ($this->id === NULL) {
293 $participant['thread_id'] = $this->id;
309 $this->model->sqlite->query($q, $this->id, $user_id);
316 if ($this->id === NULL) {
334 $this->model->sqlite->query($q, $this->id, $user_id);
345 if ($this->id === NULL) {
350 $r = $this->model->sqlite->query('SELECT * FROM label JOIN thread_label ON label.id = thread_label.label_id
351 WHERE thread_label.thread_id=?', $this->id);
354 $labels[$label['id']] = $label;
362 if ($this->id === NULL) {
366 $r = $this->model->sqlite->query('SELECT id FROM label WHERE id=?', $label_id);
374 array('thread_id' => $this->id,
381 if ($this->id === NULL) {
386 $r = $this->model->sqlite->query('DELETE FROM thread_label WHERE thread_id=? AND label_id=?',$this->id, $label_id);
394 $r = $this->model->sqlite->query("SELECT id FROM thread_comment WHERE (type='cause' OR type='risk' OR type='opportunity') AND thread_id=?",
395 $this->id);
399 $causes[] = $cause['id'];
424 AND state = 'opened'", $this->id);
429 $res = $this->model->sqlite->query("SELECT thread_comment.id FROM thread_comment
430 LEFT JOIN task ON thread_comment.id = task.thread_comment_id
432 thread_comment.type = 'cause' AND task.id IS NULL", $this->id);
450 $r = $this->model->thread_commentFactory->get_from_thread($this, array(), 'id DESC', 1);
458 return $tpl->url('thread', 'id', $this->id);
462 return '#' . $this->id;
467 return parent::getMailSubject() . ' #'.$this->id. ' ' .$this->title;
597 $this->id);