public function setDefaultPerPage($perPage)
    {
        $perPage = (int) $perPage;
        $this->defaultPerPage = $perPage;

        if (!in_array($perPage, $this->perPageList)) {
            $this->perPageList[] = $perPage;
            sort($this->perPageList);
        }

        return $this;
    }
public function setDefaultPerPage($perPage)
    {
        $perPage = (int) $perPage;
        $this->defaultPerPage = $perPage;

        if (!in_array($perPage, $this->perPageList)) {
            $this->perPageList[] = $perPage;
            sort($this->perPageList);
        }

        return $this;
    }
public function setDefaultPerPage ( $ perPage ) { $ perPage = ( int ) $ perPage ; $ this -> defaultPerPage = $ perPage ; if ( ! in_array ( $ perPage , $ this -> perPageList ) ) { $ this -> perPageList [ ] = $ perPage ; sort ( $ this -> perPageList ) ; } return $ this ; }
Sets the default number of items per page.
@param int $perPage
@return Grid
Sets the default number of items per page .