/** * Returns the number of pages of a multipage document, or false for * documents which aren't multipage documents */ function pageCount() { if ( !isset( $this->pageCount ) ) { if ( $this->getHandler() && $this->handler->isMultiPage( $this ) ) { $this->pageCount = $this->handler->pageCount( $this ); } else { $this->pageCount = false; } } return $this->pageCount; }
/** * Returns the number of pages of a multipage document, or false for * documents which aren't multipage documents * @return bool|int */ function pageCount() { if (!isset($this->pageCount)) { // @FIXME: callers expect File objects if ($this->getHandler() && $this->handler->isMultiPage($this)) { $this->pageCount = $this->handler->pageCount($this); } else { $this->pageCount = false; } } return $this->pageCount; }