Lines Matching refs:rules
28 $rules = [];
46 $this->addRule($acl[$id], $rules);
48 if (isset($acl[$id]['@ALL'])) return $rules;
57 $this->addRule($acl['*'], $rules);
66 $this->addRule($acl[$ns . ':*'], $rules);
72 return $rules;
78 * @param array $rules
81 public function splitRules($rules)
90 foreach ($rules as $key => $perm) {
103 * Adds specific access rules to a rule set covering a full namespace path.
107 * @param array $rules Set of rules already
109 protected function addRule($rule, &$rules)
116 if ($key !== '@ALL' && !array_key_exists($key, $rules)) {
123 $rules = array_merge($rules, $localrules);