Lines Matching refs:participant
256 $participant = $this->get_participant($user_id, true);
257 if ($participant === false) {
258 throw new ConsistencyViolationException("$user_id isn't participant");
289 $participant = $this->get_participant($user_id, true);
290 if ($participant == false) {
291 $participant = array_fill_keys($possible_flags, 0);
293 $participant['thread_id'] = $this->id;
294 $participant['user_id'] = $user_id;
295 $participant['added_by'] = $this->model->user_nick;
296 $participant['added_date'] = date('c');
298 $values = array_merge($participant, array_fill_keys($flags, 1));
304 if ($participant['removed'] == '1') {
320 $participant = $this->get_participant($user_id);
321 if ($participant === false) {
322 throw new ConsistencyViolationException("$user_id isn't participant");
325 if ($participant['coordinator'] == '1') {
329 if ($participant['task_assignee'] == '1') {