Fire/Sql/Filter.php
private function _parseComparison($compareLogic, $property, $value)
    {
        switch ($property) {
            case self::FILTER_CONFIG_LENGTH:
                $this->length($value);
                break;
            case self::FILTER_CONFIG_OFFSET:
                $this->offset($value);
                break;
            case self::FILTER_CONFIG_ORDER_BY:
                $this->orderBy($value);
                break;
            case self::FILTER_CONFIG_REVERSE:
                $this->reverse($value);
                break;
            default:
                $compare = $this->_extractComparisonTypeAndValue($value);
                $compareType = $compare->type;
                $compareValue = $compare->value;
                $this->{$compareLogic}($property)->{$compareType}($compareValue);
        }
    }
private function _parseComparison($compareLogic, $property, $value)
    {
        switch ($property) {
            case self::FILTER_CONFIG_LENGTH:
                $this->length($value);
                break;
            case self::FILTER_CONFIG_OFFSET:
                $this->offset($value);
                break;
            case self::FILTER_CONFIG_ORDER_BY:
                $this->orderBy($value);
                break;
            case self::FILTER_CONFIG_REVERSE:
                $this->reverse($value);
                break;
            default:
                $compare = $this->_extractComparisonTypeAndValue($value);
                $compareType = $compare->type;
                $compareValue = $compare->value;
                $this->{$compareLogic}($property)->{$compareType}($compareValue);
        }
    }
private function _parseComparison ( $ compareLogic , $ property , $ value ) { switch ( $ property ) { case self :: FILTER_CONFIG_LENGTH : $ this -> length ( $ value ) ; break ; case self :: FILTER_CONFIG_OFFSET : $ this -> offset ( $ value ) ; break ; case self :: FILTER_CONFIG_ORDER_BY : $ this -> orderBy ( $ value ) ; break ; case self :: FILTER_CONFIG_REVERSE : $ this -> reverse ( $ value ) ; break ; default : $ compare = $ this -> _extractComparisonTypeAndValue ( $ value ) ; $ compareType = $ compare -> type ; $ compareValue = $ compare -> value ; $ this -> { $ compareLogic } ( $ property ) -> { $ compareType } ( $ compareValue ) ; } }
Parses comparisons and adds logic to the filter.
@param string $compareLogic
@param string $property
@param mixed $value
@return void
Parses comparisons and adds logic to the filter .