protected function filterNotCondition(array $data, $operator, $operands)
    {
        if (count($operands) != 1) {
            throw new InvalidParamException("Operator '$operator' requires exactly one operand.");
        }

        $operand = reset($operands);
        $filteredData = $this->filterCondition($data, $operand);
        if (empty($filteredData)) {
            return $data;
        }

        $pkName = $this->_query->primaryKeyName;
        foreach ($data as $key => $row) {
            foreach ($filteredData as $filteredRowKey => $filteredRow) {
                if ($row[$pkName] === $filteredRow[$pkName]) {
                    unset($data[$key]);
                    unset($filteredData[$filteredRowKey]);
                    break;
                }
            }
        }

        return $data;
    }
protected function filterNotCondition(array $data, $operator, $operands)
    {
        if (count($operands) != 1) {
            throw new InvalidParamException("Operator '$operator' requires exactly one operand.");
        }

        $operand = reset($operands);
        $filteredData = $this->filterCondition($data, $operand);
        if (empty($filteredData)) {
            return $data;
        }

        $pkName = $this->_query->primaryKeyName;
        foreach ($data as $key => $row) {
            foreach ($filteredData as $filteredRowKey => $filteredRow) {
                if ($row[$pkName] === $filteredRow[$pkName]) {
                    unset($data[$key]);
                    unset($filteredData[$filteredRowKey]);
                    break;
                }
            }
        }

        return $data;
    }
protected function filterNotCondition ( array $ data , $ operator , $ operands ) { if ( count ( $ operands ) != 1 ) { throw new InvalidParamException ( "Operator '$operator' requires exactly one operand." ) ; } $ operand = reset ( $ operands ) ; $ filteredData = $ this -> filterCondition ( $ data , $ operand ) ; if ( empty ( $ filteredData ) ) { return $ data ; } $ pkName = $ this -> _query -> primaryKeyName ; foreach ( $ data as $ key => $ row ) { foreach ( $ filteredData as $ filteredRowKey => $ filteredRow ) { if ( $ row [ $ pkName ] === $ filteredRow [ $ pkName ] ) { unset ( $ data [ $ key ] ) ; unset ( $ filteredData [ $ filteredRowKey ] ) ; break ; } } } return $ data ; }
Inverts a filter condition.

@param array $data data to be filtered
@param string $operator operator
@param array $operands operands to be inverted

@return array filtered data

@throws InvalidParamException if wrong number of operands have been given
Inverts a filter condition .