public function totalPages()
    {
        $link = $this->_doc->navigation('self');
        return ($link && isset($link->totalpages)) ? $link->totalpages : 1;
    }
public function totalPages()
    {
        $link = $this->_doc->navigation('self');
        return ($link && isset($link->totalpages)) ? $link->totalpages : 1;
    }
public function totalPages ( ) { $ link = $ this -> _doc -> navigation ( 'self' ) ; return ( $ link && isset ( $ link -> totalpages ) ) ? $ link -> totalpages : 1 ; }
Total pages in the parent doc

@return int the total number of pages
Total pages in the parent doc