src/Table/Column/Strainer/Strainerable.php
public function setStrainerDateRange($callable = null, $attr = [])
    {

        // if callable is a string , it's a field
        if (is_string($callable) || $callable instanceof Expression) {
            $field = $callable;
            $callable = null;
        }

        // create the strainer
        $strainer = new DateRange($this, $callable, $attr);

        //if a fields is set, we configure the strainer
        if (isset($field)) {
            $strainer->setField($field);
        }

        return $this->setStrainer($strainer);
    }
public function setStrainerDateRange($callable = null, $attr = [])
    {

        // if callable is a string , it's a field
        if (is_string($callable) || $callable instanceof Expression) {
            $field = $callable;
            $callable = null;
        }

        // create the strainer
        $strainer = new DateRange($this, $callable, $attr);

        //if a fields is set, we configure the strainer
        if (isset($field)) {
            $strainer->setField($field);
        }

        return $this->setStrainer($strainer);
    }
public function setStrainerDateRange ( $ callable = null , $ attr = [ ] ) { // if callable is a string , it's a field if ( is_string ( $ callable ) || $ callable instanceof Expression ) { $ field = $ callable ; $ callable = null ; } // create the strainer $ strainer = new DateRange ( $ this , $ callable , $ attr ) ; //if a fields is set, we configure the strainer if ( isset ( $ field ) ) { $ strainer -> setField ( $ field ) ; } return $ this -> setStrainer ( $ strainer ) ; }
Set a strainer as date from to

@param null $callable
@param array $attr
@return $this
Set a strainer as date from to