Lines Matching refs:value
195 * @param string $value The passed value or array or null if none given
201 public function handle_post($value, &$fields, $index, $formid) { argument
202 return $this->hidden || $this->setVal($value);
221 $value = $this->getParam('value');
223 if (is_array($value)) {
226 '(?:\|(?P<default>.*?))' . (count($value) == 0 ? '' : '?') .
231 '(?:\|(.*?))' . (is_null($value) ? '' : '?') .
242 $value = $this->opt['value'];
245 if (is_null($value) || $value === false) {
255 return implode($delimiter, $value);
265 $value = $this->getParam('value');
267 if (is_array($value)) {
271 return is_null($value) || $value === false ? '$2' : $value;
277 * @param mixed $value value entered into field
280 protected function setVal($value) { argument
281 if ($value === '') {
282 $value = null;
284 $this->opt['value'] = $value;
310 $value = $this->getParam('value');
311 if (is_null($value)) {
320 if (!call_user_func(array($this, 'validate_' . $checktype), $check['d'], $value)) {
347 $value = $this->getParam('value');
348 if (is_null($value)) {
352 if($conf['useslash']) $value = str_replace('/',' ',$value);
353 return str_replace(':',' ',$value);
420 * @param mixed $value
423 protected function validate_match($d, $value) { argument
424 return @preg_match('/' . $d . '/i', $value);
431 * @param mixed $value of field
434 protected function validate_min($d, $value) { argument
435 return $value > $d;
442 * @param mixed $value of field
445 protected function validate_max($d, $value) { argument
446 return $value < $d;