Lines Matching refs:item
42 * @param string $item page or namespace
47 public function addRule($item, $type, $members) argument
49 $isns = $this->cleanItem($item);
57 if (!$item) {
65 $this->removeRule($item);
67 $this->rules[$item] = array($type, $members);
70 $this->applyRule($item, $type, $members);
76 * @param string $item page or namespace
79 public function removeRule($item) argument
81 if (!isset($this->rules[$item])) return;
83 list($type, $members) = $this->rules[$item];
84 unset($this->rules[$item]);
87 $this->ceaseRule($item, $type, $members);
101 foreach ($this->rules as $item => $data) {
103 $sub->add($item, $user, $data[0]);
135 foreach ($this->rules as $item => $data) {
136 $out .= "$item\t$data[0]\t$data[1]\n";
145 * @param string $item page or namespace
150 protected function applyRule($item, $type, $members) argument
155 $sub->add($item, $user, $type);
163 * @param string $item page or namespace
168 protected function ceaseRule($item, $type, $members) argument
174 $sub->remove($item, $user, $type);
220 protected function cleanItem(&$item) argument
223 $item = trim($item);
224 if (substr($item, -1) == ':') {
227 $item = cleanID($item);
228 if ($isns) $item = "$item:";