Esempio n. 1
0
	/**
	 * 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;
	}
Esempio n. 2
0
 /**
  * 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;
 }