Lines Matching refs:value
46 protected function check_against_val_method($value, $method, $args) {
52 array_unshift($args, $value);
57 protected function validate_one($value, $method, $args, $null) {
58 if ($null === 'NOT NULL' && $value == '') {
60 } else if ($null === 'NULL' && $value == '') {
64 return $this->check_against_val_method($value, $method, $args);
67 public function validate_field($field, $value) {
76 list($result, $code) = $this->validate_one($value, $method, $args, $null);
82 return (string) $value;
92 foreach ($data as $key => $value) {
97 $val_data[$key] = $this->validate_field($key, $value);
114 foreach ($array as $value) {
115 $result = $this->check_against_val_method($value, $method, $args);
123 public function validate_select($value, $options) {
124 if (in_array($value, $options)) {
146 public function validate_numeric($value) {
147 if (is_numeric($value)) {
153 public function validate_length($value, $max_length) {
154 if (strlen($value) <= $max_length) {
200 public function validate_must_be_empty($value) {
201 if ($value == '') {