public function setRowsPerPage(\Illuminate\Session\Store $session, $globalPerPage, $override = null)
    {
        if ($override) {
            $perPage = (int) $override;
            $session->put('administrator_'.$this->config->getOption('name').'_rows_per_page', $perPage);
        }

        $perPage = $session->get('administrator_'.$this->config->getOption('name').'_rows_per_page');

        if (!$perPage) {
            $perPage = (int) $globalPerPage;
        }

        $this->rowsPerPage = $perPage;
    }
public function setRowsPerPage(\Illuminate\Session\Store $session, $globalPerPage, $override = null)
    {
        if ($override) {
            $perPage = (int) $override;
            $session->put('administrator_'.$this->config->getOption('name').'_rows_per_page', $perPage);
        }

        $perPage = $session->get('administrator_'.$this->config->getOption('name').'_rows_per_page');

        if (!$perPage) {
            $perPage = (int) $globalPerPage;
        }

        $this->rowsPerPage = $perPage;
    }
public function setRowsPerPage ( \ Illuminate \ Session \ Store $ session , $ globalPerPage , $ override = null ) { if ( $ override ) { $ perPage = ( int ) $ override ; $ session -> put ( 'administrator_' . $ this -> config -> getOption ( 'name' ) . '_rows_per_page' , $ perPage ) ; } $ perPage = $ session -> get ( 'administrator_' . $ this -> config -> getOption ( 'name' ) . '_rows_per_page' ) ; if ( ! $ perPage ) { $ perPage = ( int ) $ globalPerPage ; } $ this -> rowsPerPage = $ perPage ; }
Set the number of rows per page for this data table.

@param \Illuminate\Session\Store $session
@param int                       $globalPerPage
@param int                       $override      //if provided, this will set the session's rows per page value
Set the number of rows per page for this data table .