Пример #1
0
 /**
  * Get next object from a list of free objects.
  *
  * @param string $ref
  * @return integer
  * @throws Zend_Pdf_Exception
  */
 public function getNextFree($ref)
 {
     if (isset($this->_inuse[$ref])) {
         throw new Zend_Pdf_Exception('Object is not free');
     }
     if (isset($this->_free[$ref])) {
         return $this->_free[$ref];
     }
     if (isset($this->_parent)) {
         return $this->_parent->getNextFree($ref);
     }
     throw new Zend_Pdf_Exception('Object not found.');
 }
Пример #2
0
 /**
  * Get next object from a list of free objects.
  *
  * @param string $ref
  * @return integer
  * @throws Zend_Pdf_Exception
  */
 public function getNextFree($ref)
 {
     if (isset($this->_inuse[$ref])) {
         // require_once 'Zend/Pdf/Exception.php';
         throw new Zend_Pdf_Exception('Object is not free');
     }
     if (isset($this->_free[$ref])) {
         return $this->_free[$ref];
     }
     if (isset($this->_parent)) {
         return $this->_parent->getNextFree($ref);
     }
     // require_once 'Zend/Pdf/Exception.php';
     throw new Zend_Pdf_Exception('Object not found.');
 }