Lines Matching refs:flags
395 public function remove_participant_flags($user_id, $flags) {
398 throw new \Exception('cannot remove flags from not saved thread');
407 if (array_intersect($flags, $possible_flags) != $flags) {
408 throw new \Exception('unknown flags');
411 $set = implode(',', array_map(function ($v) { return "$v=0"; }, $flags));
418 public function set_participant_flags($user_id, $flags=array()) {
421 throw new \Exception('cannot add flags to not saved thread');
430 if (array_intersect($flags, $possible_flags) != $flags) {
431 throw new \Exception('unknown flags');
443 $values = array_merge($participant, array_fill_keys($flags, 1));
446 $set = implode(',', array_map(function($flag) { return "$flag=1"; }, $flags));
460 throw new \Exception('cannot remove flags from not saved thread');