FOF30\Model\DataModel\Filter\AbstractFilter::search PHP Method

    public function search($value, $operator = '=')
    {
        if ($this->isEmpty($value)) {
            return '';
        }
        $prefix = '';
        if (substr($operator, 0, 1) == '!') {
            $prefix = 'NOT ';
            $operator = substr($operator, 1);
        }
        return $prefix . '(' . $this->getFieldName() . ' ' . $operator . ' ' . $this->db->quote($value) . ')';
    }