src/Form/Filterer.php
public function lessThan(array $options) {
        if (isset($options['element'])) {
            if (isset($this->data[$options['element']])) {
                $than = ' "' . $this->cleanElement($options['element']) . '"';
                if ($this->elementData < $this->data[$options['element']]) {
                    return true;
                }
            }
        } else if (isset($options['value'])) {
            $than = $options['value'];
            if ($this->elementData < $options['value']) {
                return true;
            }
        }

        $this->addError($this->checkMessage('Value must be less than ' . $than, $options));
        return false;
    }
public function lessThan(array $options) {
        if (isset($options['element'])) {
            if (isset($this->data[$options['element']])) {
                $than = ' "' . $this->cleanElement($options['element']) . '"';
                if ($this->elementData < $this->data[$options['element']]) {
                    return true;
                }
            }
        } else if (isset($options['value'])) {
            $than = $options['value'];
            if ($this->elementData < $options['value']) {
                return true;
            }
        }

        $this->addError($this->checkMessage('Value must be less than ' . $than, $options));
        return false;
    }
public function lessThan ( array $ options ) { if ( isset ( $ options [ 'element' ] ) ) { if ( isset ( $ this -> data [ $ options [ 'element' ] ] ) ) { $ than = ' "' . $ this -> cleanElement ( $ options [ 'element' ] ) . '"' ; if ( $ this -> elementData < $ this -> data [ $ options [ 'element' ] ] ) { return true ; } } } else if ( isset ( $ options [ 'value' ] ) ) { $ than = $ options [ 'value' ] ; if ( $ this -> elementData < $ options [ 'value' ] ) { return true ; } } $ this -> addError ( $ this -> checkMessage ( 'Value must be less than ' . $ than , $ options ) ) ; return false ; }
Checks if the value of the element is less than the given value
@param string $name Name of the element to filter
@param  array $options Keys may include [message]
@return boolean
Checks if the value of the element is less than the given value