src/storage/QueryTrait.php
private function arrayFilter($value, $field)
    {
        foreach ($this->_where as $expression) {
            if ($expression['field'] == $field) {
                switch ($expression['op']) {
                    case '=':
                        return ($value == $expression['value']);
                    case '==':
                        return ($value === $expression['value']);
                    case '>':
                        return ($value > $expression['value']);
                    case '>=':
                        return ($value >= $expression['value']);
                    case '<':
                        return ($value < $expression['value']);
                    case '<=':
                        return ($value <= $expression['value']);
                    case 'in':
                        return in_array($value, $expression['value']);
                }
            }
        }
    
        return true;
    }
private function arrayFilter($value, $field)
    {
        foreach ($this->_where as $expression) {
            if ($expression['field'] == $field) {
                switch ($expression['op']) {
                    case '=':
                        return ($value == $expression['value']);
                    case '==':
                        return ($value === $expression['value']);
                    case '>':
                        return ($value > $expression['value']);
                    case '>=':
                        return ($value >= $expression['value']);
                    case '<':
                        return ($value < $expression['value']);
                    case '<=':
                        return ($value <= $expression['value']);
                    case 'in':
                        return in_array($value, $expression['value']);
                }
            }
        }
    
        return true;
    }
private function arrayFilter ( $ value , $ field ) { foreach ( $ this -> _where as $ expression ) { if ( $ expression [ 'field' ] == $ field ) { switch ( $ expression [ 'op' ] ) { case '=' : return ( $ value == $ expression [ 'value' ] ) ; case '==' : return ( $ value === $ expression [ 'value' ] ) ; case '>' : return ( $ value > $ expression [ 'value' ] ) ; case '>=' : return ( $ value >= $ expression [ 'value' ] ) ; case '<' : return ( $ value < $ expression [ 'value' ] ) ; case '<=' : return ( $ value <= $ expression [ 'value' ] ) ; case 'in' : return in_array ( $ value , $ expression [ 'value' ] ) ; } } } return true ; }
Process items against where filters

@param string $value
@param string $field
@return boolean
Process items against where filters