src/DcGeneral/Data/FilterBuilderSql.php
protected function getFilterForLike($operation)
    {
        $this->parameter[]  = str_replace(array('*', '?'), array('%', '_'), $operation['value']);
        $this->procedures[] = sprintf('(%s LIKE ?)', $operation['property']);

        return $this;
    }
protected function getFilterForLike($operation)
    {
        $this->parameter[]  = str_replace(array('*', '?'), array('%', '_'), $operation['value']);
        $this->procedures[] = sprintf('(%s LIKE ?)', $operation['property']);

        return $this;
    }
protected function getFilterForLike ( $ operation ) { $ this -> parameter [ ] = str_replace ( array ( '*' , '?' ) , array ( '%' , '_' ) , $ operation [ 'value' ] ) ; $ this -> procedures [ ] = sprintf ( '(%s LIKE ?)' , $ operation [ 'property' ] ) ; return $ this ; }
Return the filter query for a "foo LIKE '%ba_r%'" filter.

The searched value may contain the wildcards '*' and '?' which will get converted to proper SQL.

@param array $operation The operation to apply.

@return FilterBuilderSql
Return the filter query for a foo LIKE %ba_r% filter .