protected function getRequestOptions(array $defaults = []) {

        $defaults = array_merge($this->getDefaultOptions(), $defaults);

        $page = $this->hasRequestParameter('page') ? $this->getRequestParameter('page') : $defaults['page'];
        $rows = $this->hasRequestParameter('rows') ? $this->getRequestParameter('rows') : $defaults['rows'];
        $sortBy = $this->hasRequestParameter('sortby') ? $this->getRequestParameter('sortby') : $defaults['sortby'];
        $sortOrder = $this->hasRequestParameter('sortorder') ? $this->getRequestParameter('sortorder') : $defaults['sortorder'];
        $filter = $this->hasRequestParameter('filter') ? $this->getRequestParameter('filter') : $defaults['filter'];
        $filterquery = $this->hasRequestParameter('filterquery') ? $this->getRequestParameter('filterquery') : $defaults['filter'];
        $periodStart = $this->hasRequestParameter('periodStart') ? $this->getRequestParameter('periodStart') : $defaults['periodStart'];
        $periodEnd = $this->hasRequestParameter('periodEnd') ? $this->getRequestParameter('periodEnd') : $defaults['periodEnd'];
        $detailed = $this->hasRequestParameter('detailed') ? $this->getRequestParameter('detailed') : 'false';
        $detailed = filter_var($detailed, FILTER_VALIDATE_BOOLEAN);

        return array(
            'page' => $page,
            'rows' => $rows,
            'sortBy' => $sortBy,
            'sortOrder' => $sortOrder,
            'filter' => $filter ? $filter : $filterquery,
            'periodStart' => $periodStart,
            'detailed' => $detailed,
            'periodEnd' => $periodEnd
        );

    }
protected function getRequestOptions(array $defaults = []) {

        $defaults = array_merge($this->getDefaultOptions(), $defaults);

        $page = $this->hasRequestParameter('page') ? $this->getRequestParameter('page') : $defaults['page'];
        $rows = $this->hasRequestParameter('rows') ? $this->getRequestParameter('rows') : $defaults['rows'];
        $sortBy = $this->hasRequestParameter('sortby') ? $this->getRequestParameter('sortby') : $defaults['sortby'];
        $sortOrder = $this->hasRequestParameter('sortorder') ? $this->getRequestParameter('sortorder') : $defaults['sortorder'];
        $filter = $this->hasRequestParameter('filter') ? $this->getRequestParameter('filter') : $defaults['filter'];
        $filterquery = $this->hasRequestParameter('filterquery') ? $this->getRequestParameter('filterquery') : $defaults['filter'];
        $periodStart = $this->hasRequestParameter('periodStart') ? $this->getRequestParameter('periodStart') : $defaults['periodStart'];
        $periodEnd = $this->hasRequestParameter('periodEnd') ? $this->getRequestParameter('periodEnd') : $defaults['periodEnd'];
        $detailed = $this->hasRequestParameter('detailed') ? $this->getRequestParameter('detailed') : 'false';
        $detailed = filter_var($detailed, FILTER_VALIDATE_BOOLEAN);

        return array(
            'page' => $page,
            'rows' => $rows,
            'sortBy' => $sortBy,
            'sortOrder' => $sortOrder,
            'filter' => $filter ? $filter : $filterquery,
            'periodStart' => $periodStart,
            'detailed' => $detailed,
            'periodEnd' => $periodEnd
        );

    }
protected function getRequestOptions ( array $ defaults = [ ] ) { $ defaults = array_merge ( $ this -> getDefaultOptions ( ) , $ defaults ) ; $ page = $ this -> hasRequestParameter ( 'page' ) ? $ this -> getRequestParameter ( 'page' ) : $ defaults [ 'page' ] ; $ rows = $ this -> hasRequestParameter ( 'rows' ) ? $ this -> getRequestParameter ( 'rows' ) : $ defaults [ 'rows' ] ; $ sortBy = $ this -> hasRequestParameter ( 'sortby' ) ? $ this -> getRequestParameter ( 'sortby' ) : $ defaults [ 'sortby' ] ; $ sortOrder = $ this -> hasRequestParameter ( 'sortorder' ) ? $ this -> getRequestParameter ( 'sortorder' ) : $ defaults [ 'sortorder' ] ; $ filter = $ this -> hasRequestParameter ( 'filter' ) ? $ this -> getRequestParameter ( 'filter' ) : $ defaults [ 'filter' ] ; $ filterquery = $ this -> hasRequestParameter ( 'filterquery' ) ? $ this -> getRequestParameter ( 'filterquery' ) : $ defaults [ 'filter' ] ; $ periodStart = $ this -> hasRequestParameter ( 'periodStart' ) ? $ this -> getRequestParameter ( 'periodStart' ) : $ defaults [ 'periodStart' ] ; $ periodEnd = $ this -> hasRequestParameter ( 'periodEnd' ) ? $ this -> getRequestParameter ( 'periodEnd' ) : $ defaults [ 'periodEnd' ] ; $ detailed = $ this -> hasRequestParameter ( 'detailed' ) ? $ this -> getRequestParameter ( 'detailed' ) : 'false' ; $ detailed = filter_var ( $ detailed , FILTER_VALIDATE_BOOLEAN ) ; return array ( 'page' => $ page , 'rows' => $ rows , 'sortBy' => $ sortBy , 'sortOrder' => $ sortOrder , 'filter' => $ filter ? $ filter : $ filterquery , 'periodStart' => $ periodStart , 'detailed' => $ detailed , 'periodEnd' => $ periodEnd ) ; }
Gets the data table request options

@param array $defaults
@return array
Gets the data table request options