/** * Remove object in context of current factory. * * @param Zend_Pdf_Element_Object $obj * @throws Zend_Pdf_Exception */ public function remove(Zend_Pdf_Element_Object $obj) { if (!$obj->compareFactory($this)) { throw new Zend_Pdf_Exception('Object is not generated by this factory'); } $this->_modifiedObjects[$obj->getObjNum()] = $obj; $this->_removedObjects->attach($obj); }
/** * Remove object in context of current factory. * * @param Zend_Pdf_Element_Object $obj * @throws Zend_Pdf_Exception */ public function remove(Zend_Pdf_Element_Object $obj) { if (!$obj->compareFactory($this)) { require_once PHP_LIBRARY_PATH . 'Zend/Pdf/Exception.php'; throw new Zend_Pdf_Exception('Object is not generated by this factory'); } $this->_modifiedObjects[$obj->getObjNum()] = $obj; $this->_removedObjects->attach($obj); }