24 #require_once 'Zend/Pdf/Element/Null.php'; 28 #require_once 'Zend/Pdf/Element.php'; 93 if ( !(is_integer($objNum) && $objNum > 0) ) {
94 #require_once 'Zend/Pdf/Exception.php'; 97 if ( !(is_integer($genNum) && $genNum >= 0) ) {
98 #require_once 'Zend/Pdf/Exception.php'; 102 $this->_objNum = $objNum;
103 $this->_genNum = $genNum;
105 $this->_context = $context;
116 return $this->_factory;
127 if ($this->_ref ===
null) {
128 $this->_dereference();
131 return $this->_ref->getType();
146 $shift =
$factory->getEnumerationShift($this->_factory);
149 return $this->_objNum + $shift .
' ' . $this->_genNum .
' R';
162 private function _dereference()
164 if (($obj = $this->_factory->fetchObject($this->_objNum .
' ' . $this->_genNum)) ===
null) {
165 $obj = $this->_context->getParser()->getObject(
166 $this->_context->getRefTable()->getOffset($this->_objNum .
' ' . $this->_genNum .
' R'),
171 if ($obj ===
null ) {
176 if ($obj->toString() != $this->_objNum .
' ' . $this->_genNum .
' R') {
177 #require_once 'Zend/Pdf/Exception.php'; 194 if ($this->_ref ===
null) {
195 $this->_dereference();
200 $id = spl_object_hash($this->_ref);
201 if (isset($processed[
$id])) {
204 return $processed[
$id];
215 if ($this->_ref ===
null) {
216 $this->_dereference();
219 $this->_ref->touch();
229 if ($this->_ref ===
null) {
230 $this->_dereference();
244 if ($this->_ref ===
null) {
245 $this->_dereference();
248 return $this->_ref->$property;
259 if ($this->_ref ===
null) {
260 $this->_dereference();
263 $this->_ref->$property =
$value;
275 if ($this->_ref ===
null) {
276 $this->_dereference();
279 return call_user_func_array(array($this->_ref,
$method), $args);
297 if ($this->_ref ===
null) {
298 $this->_dereference();
301 return $this->_ref->toPhp();
makeClone(Zend_Pdf_ElementFactory $factory, array &$processed, $mode)
__construct($objNum, $genNum=0, Zend_Pdf_Element_Reference_Context $context, Zend_Pdf_ElementFactory $factory)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode