Definition at line 35 of file Object.php.
◆ __construct()
Object constructor
- Parameters
-
- Exceptions
-
Definition at line 74 of file Object.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);
setParentObject(Zend_Pdf_Element_Object $parent)
◆ __call()
__call |
( |
|
$method, |
|
|
|
$args |
|
) |
| |
Call handler
- Parameters
-
- Returns
- mixed
Definition at line 209 of file Object.php.
211 return call_user_func_array(array($this->_value,
$method), $args);
◆ __get()
Get handler
- Parameters
-
- Returns
- mixed
Definition at line 186 of file Object.php.
188 return $this->_value->$property;
◆ __set()
__set |
( |
|
$property, |
|
|
|
$value |
|
) |
| |
Set handler
- Parameters
-
string | $property | |
mixed | $value | |
Definition at line 197 of file Object.php.
199 $this->_value->$property =
$value;
◆ cleanUp()
Clean up resources, used by object
Definition at line 270 of file Object.php.
272 $this->_value =
null;
◆ dump()
Dump object to a string to save within PDF file.
$factory parameter defines operation context.
- Parameters
-
- Returns
- string
Definition at line 171 of file Object.php.
173 $shift =
$factory->getEnumerationShift($this->_factory);
175 return $this->_objNum + $shift .
" " . $this->_genNum .
" obj \n" 176 . $this->_value->toString(
$factory) .
"\n"
◆ getFactory()
◆ getGenNum()
Get generation number
- Returns
- integer
Definition at line 139 of file Object.php.
◆ getObject()
◆ getObjNum()
Get object number
- Returns
- integer
Definition at line 128 of file Object.php.
◆ getType()
Return type of the element.
- Returns
- integer
Definition at line 117 of file Object.php.
119 return $this->_value->getType();
◆ makeClone()
Detach PDF object from the factory (if applicable), clone it and attach to new factory.
- Parameters
-
Zend_Pdf_ElementFactory | $factory | The factory to attach |
array | &$processed | List of already processed indirect objects, used to avoid objects duplication |
integer | $mode | Cloning mode (defines filter for objects cloning) |
- Returns
- Zend_Pdf_Element
Definition at line 222 of file Object.php.
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;
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
◆ toPhp()
Convert PDF element to PHP type.
- Returns
- mixed
Definition at line 280 of file Object.php.
282 return $this->_value->toPhp();
◆ toString()
toString |
( |
|
$factory = null | ) |
|
Return reference to the object
- Parameters
-
- Returns
- string
Definition at line 151 of file Object.php.
156 $shift =
$factory->getEnumerationShift($this->_factory);
159 return $this->_objNum + $shift .
' ' . $this->_genNum .
' R';
◆ touch()
Mark object as modified, to include it into new PDF file segment
Definition at line 252 of file Object.php.
254 $this->_factory->markAsModified($this);
◆ $_factory
◆ $_genNum
◆ $_objNum
◆ $_value
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Element/Object.php