/** * Get factory ID * * @return integer */ public function getId() { return $this->_factory->getId(); }
/** * Attach factory to the current; * * @param Zend_Pdf_ElementFactory_Interface $factory */ public function attach(Zend_Pdf_ElementFactory_Interface $factory) { if ($factory === $this || isset($this->_attachedFactories[$factory->getId()])) { /** * Don't attach factory twice. * We do not check recusively because of nature of attach operation * (Pages are always attached to the Documents, Fonts are always attached * to the pages even if pages already use Document level object factory and so on) */ return; } $this->_attachedFactories[$factory->getId()] = $factory; }
public function attach(Zend_Pdf_ElementFactory_Interface $factory) { if ($factory === $this || isset($this->_attachedFactories[$factory->getId()])) { return; } $this->_attachedFactories[$factory->getId()] = $factory; }