Lines Matching refs:flags
250 public function remove_participant_flags($user_id, $flags) {
253 throw new \Exception('cannot remove flags from not saved thread');
262 if (array_intersect($flags, $possible_flags) != $flags) {
263 throw new \Exception('unknown flags');
266 $set = implode(',', array_map(function ($v) { return "$v=0"; }, $flags));
273 public function set_participant_flags($user_id, $flags=array()) {
276 throw new \Exception('cannot add flags to not saved thread');
285 if (array_intersect($flags, $possible_flags) != $flags) {
286 throw new \Exception('unknown flags');
298 $values = array_merge($participant, array_fill_keys($flags, 1));
302 $set = implode(',', array_map(function($flag) { return "$flag=1"; }, $flags));
317 throw new \Exception('cannot remove flags from not saved thread');