| @@ 140-150 (lines=11) @@ | ||
| 137 | return array($this, $name); |
|
| 138 | } |
|
| 139 | ||
| 140 | private function _pre_parse() |
|
| 141 | {
|
|
| 142 | $this->pre_parse(); |
|
| 143 | foreach($this->rules as $rule) |
|
| 144 | {
|
|
| 145 | if(!isset($rule['init'])) continue; |
|
| 146 | $m = $this->getmethod($rule['init']); |
|
| 147 | if(!$m) continue; |
|
| 148 | call_user_func($m); |
|
| 149 | } |
|
| 150 | } |
|
| 151 | private function _post_parse() |
|
| 152 | {
|
|
| 153 | foreach($this->rules as $rule) |
|
| @@ 151-161 (lines=11) @@ | ||
| 148 | call_user_func($m); |
|
| 149 | } |
|
| 150 | } |
|
| 151 | private function _post_parse() |
|
| 152 | {
|
|
| 153 | foreach($this->rules as $rule) |
|
| 154 | {
|
|
| 155 | if(!isset($rule['deinit'])) continue; |
|
| 156 | $m = $this->getmethod($rule['deinit']); |
|
| 157 | if(!$m) continue; |
|
| 158 | call_user_func($m); |
|
| 159 | } |
|
| 160 | $this->post_parse(); |
|
| 161 | } |
|
| 162 | ||
| 163 | private function rule_order_sort($a, $b) |
|
| 164 | {
|
|