protected function calcNbPages()
    {
        if (!is_null($this->nbPerPage) && !is_null($this->nbResults)) {
            $this->nbPages = ceil($this->nbResults / $this->nbPerPage);
        }
    }
protected function calcNbPages()
    {
        if (!is_null($this->nbPerPage) && !is_null($this->nbResults)) {
            $this->nbPages = ceil($this->nbResults / $this->nbPerPage);
        }
    }
protected function calcNbPages ( ) { if ( ! is_null ( $ this -> nbPerPage ) && ! is_null ( $ this -> nbResults ) ) { $ this -> nbPages = ceil ( $ this -> nbResults / $ this -> nbPerPage ) ; } }
Calculates the number of pages.
Calculates the number of pages .