local; $valid = parent::update($input); if($valid && !(is_null($this->min) && is_null($this->max))) { $numeric_local = (int) eval('return ' . $this->local . ';'); if((!is_null($this->min) && $numeric_local < $this->min) || (!is_null($this->max) && $numeric_local > $this->max)) { $this->error = true; $this->input = $input; $this->local = $local; $valid = false; } } return $valid; } /** @inheritdoc */ public function out($var, $fmt = 'php') { if($fmt != 'php') return ''; $local = $this->local === '' ? "''" : $this->local; $out = '$' . $var . "['" . $this->getArrayKey() . "'] = " . $local . ";\n"; return $out; } }