Lines Matching defs:user_id

354         $sql .= ' task_id=? AND removed=0 ORDER BY user_id';
360 $participants[$par['user_id']] = $par;
366 public function get_participant($user_id, $can_be_removed=false) {
371 $q = 'SELECT * FROM task_participant WHERE task_id=? AND user_id=?';
375 $r = $this->model->sqlite->query($q, $this->id, $user_id);
384 public function is_subscribent($user_id=null) {
385 if ($user_id == null) {
386 $user_id = $this->model->user_nick;
388 $par = $this->get_participant($user_id);
395 public function remove_participant_flags($user_id, $flags) {
401 $participant = $this->get_participant($user_id, true);
403 throw new ConsistencyViolationException("$user_id isn't participant");
413 $sql = "UPDATE task_participant SET $set WHERE task_id=? AND user_id=?";
414 $this->model->sqlite->query($sql, $this->id, $user_id);
418 public function set_participant_flags($user_id, $flags=array()) {
425 if (!$this->model->userFactory->exists($user_id)) {
426 throw new \Exception("$user_id isn't dokuwiki user");
434 $participant = $this->get_participant($user_id, true);
439 $participant['user_id'] = $user_id;
452 $q = "UPDATE task_participant SET $set WHERE task_id=? AND user_id=?";
453 $this->model->sqlite->query($q, $this->id, $user_id);
457 public function remove_participant($user_id) {
463 $participant = $this->get_participant($user_id);
465 throw new ConsistencyViolationException("$user_id isn't participant");
472 $q = "UPDATE task_participant SET removed=1 WHERE task_id=? AND user_id=?";
473 $this->model->sqlite->query($q, $this->id, $user_id);