| Conditions | 5 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function update($input) { |
||
| 14 | if($this->isProtected()) return false; |
||
| 15 | if(!$input) return false; |
||
| 16 | |||
| 17 | if($this->pattern && !preg_match($this->pattern, $input)) { |
||
| 18 | $this->error = true; |
||
| 19 | $this->input = $input; |
||
| 20 | return false; |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->local = conf_encodeString($input, $this->code); |
||
| 24 | return true; |
||
| 25 | } |
||
| 26 | |||
| 40 |