Lines Matching defs:id

14     protected $id;
40 return array('id',
67 if ($this->thread == null || $this->thread_id != $this->thread->id) {
76 if ($this->thread_comment == null || $this->thread_comment_id != $this->thread_comment->id) {
104 if ($this->id === NULL) {
114 $this->thread_id = $this->thread->id;
125 $this->thread_comment_id = $this->thread_comment->id;
177 if (isset($defaults['thread']) && $this->thread_id == $defaults['thread']->id) {
181 if (isset($defaults['thread_comment']) && $this->thread_comment_id == $defaults['thread_comment']->id) {
300 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET state=?, closed_by=?, close_date=? WHERE id=?",
304 $this->id);
307 $this->model->sqlite->query("UPDATE {$this->get_table_name()} SET state=? WHERE id=?", $state, $this->id);
319 $this->model->sqlite->query('UPDATE task SET last_activity_date=? WHERE id=?',
320 $this->last_activity_date, $this->id);
342 if ($this->id === NULL) {
356 $r = $this->model->sqlite->query($sql, $this->id);
367 if ($this->id === NULL) {
375 $r = $this->model->sqlite->query($q, $this->id, $user_id);
397 if ($this->id === NULL) {
414 $this->model->sqlite->query($sql, $this->id, $user_id);
420 if ($this->id === NULL) {
438 $participant['task_id'] = $this->id;
453 $this->model->sqlite->query($q, $this->id, $user_id);
459 if ($this->id === NULL) {
473 $this->model->sqlite->query($q, $this->id, $user_id);
486 $q = "SELECT id, private FROM thread_view WHERE id = ? AND state IN ('opened', 'done')";
498 $q .= " WHERE id=?";
499 $this->model->sqlite->query($q, $thread_id, $this->id);
507 $q = "UPDATE task SET type='program', thread_id='', thread_comment_id='', private=0 WHERE id=?";
508 $this->model->sqlite->query($q, $this->id);
518 return $tpl->url('task', 'tid', $this->id);
526 return $ret . '#z' . $this->id;
531 return parent::getMailSubject() . ' #z'.$this->id. ' ' . $this->task_program_name; // TODO: Change the autogenerated stub