public function makeFilter(
        $filterType = null,
        $filterField = null,
        $filterValue = null
    ) {
        if ($filterType === null &&
            $filterField === null &&
            $filterValue === null)
            $this->filter = array();
        else
            $this->filter = array(
                'filter_type' => $filterType,
                'filter_field' => $filterField,
                'filter_value' => $filterValue
            );

        return $this;
    }
public function makeFilter(
        $filterType = null,
        $filterField = null,
        $filterValue = null
    ) {
        if ($filterType === null &&
            $filterField === null &&
            $filterValue === null)
            $this->filter = array();
        else
            $this->filter = array(
                'filter_type' => $filterType,
                'filter_field' => $filterField,
                'filter_value' => $filterValue
            );

        return $this;
    }
public function makeFilter ( $ filterType = null , $ filterField = null , $ filterValue = null ) { if ( $ filterType === null && $ filterField === null && $ filterValue === null ) $ this -> filter = array ( ) ; else $ this -> filter = array ( 'filter_type' => $ filterType , 'filter_field' => $ filterField , 'filter_value' => $ filterValue ) ; return $ this ; }
Sets up filtering rules for the query.

@param null $filterType
@param null $filterField
@param null $filterValue
@return $this
Sets up filtering rules for the query .