24 #require_once 'Zend/Pdf/Element.php'; 76 if ($val instanceof
self) {
77 #require_once 'Zend/Pdf/Exception.php'; 78 throw new Zend_Pdf_Exception(
'Object number must not be an instance of Zend_Pdf_Element_Object.');
81 if ( !(is_integer($objNum) && $objNum > 0) ) {
82 #require_once 'Zend/Pdf/Exception.php'; 86 if ( !(is_integer($genNum) && $genNum >= 0) ) {
87 #require_once 'Zend/Pdf/Exception.php'; 92 $this->_objNum = $objNum;
93 $this->_genNum = $genNum;
98 $factory->registerObject($this, $objNum .
' ' . $genNum);
119 return $this->_value->getType();
156 $shift =
$factory->getEnumerationShift($this->_factory);
159 return $this->_objNum + $shift .
' ' . $this->_genNum .
' R';
173 $shift =
$factory->getEnumerationShift($this->_factory);
175 return $this->_objNum + $shift .
" " . $this->_genNum .
" obj \n" 176 . $this->_value->toString(
$factory) .
"\n" 188 return $this->_value->$property;
199 $this->_value->$property =
$value;
211 return call_user_func_array(array($this->_value,
$method), $args);
224 $id = spl_object_hash($this);
225 if (isset($processed[
$id])) {
228 return $processed[
$id];
235 $clonedObject->_value = $this->_value->makeClone(
$factory, $processed,
$mode);
240 unset($processed[
$id]);
243 return $clonedObject->_value;
246 return $clonedObject;
254 $this->_factory->markAsModified($this);
272 $this->_value =
null;
282 return $this->_value->toPhp();
__construct(Zend_Pdf_Element $val, $objNum, $genNum, Zend_Pdf_ElementFactory $factory)
dump(Zend_Pdf_ElementFactory $factory)
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
setParentObject(Zend_Pdf_Element_Object $parent)
makeClone(Zend_Pdf_ElementFactory $factory, array &$processed, $mode)