_objNum = $objNum; $this->_genNum = $genNum; $this->_isFree = $isFree; if ($dump !== null) { if (strlen($dump) > 1024) { #require_once 'Zend/Pdf.php'; $this->_dump = Zend_Pdf::getMemoryManager()->create($dump); } else { $this->_dump = $dump; } } } /** * Get object number * * @return integer */ public function getObjNum() { return $this->_objNum; } /** * Get generation number * * @return integer */ public function getGenNum() { return $this->_genNum; } /** * Check, that object is free * * @return boolean */ public function isFree() { return $this->_isFree; } /** * Get string representation of the object * * @return string */ public function getObjectDump() { if ($this->_dump === null) { return ''; } if (is_string($this->_dump)) { return $this->_dump; } return $this->_dump->getRef(); } }