Definition at line 35 of file Array.php.
◆ __construct()
__construct |
( |
|
$val = null | ) |
|
Object constructor
- Parameters
-
- Exceptions
-
Definition at line 53 of file Array.php.
55 $this->items =
new ArrayObject();
57 if ($val !==
null && is_array($val)) {
60 #require_once 'Zend/Pdf/Exception.php'; 65 }
else if ($val !==
null){
66 #require_once 'Zend/Pdf/Exception.php';
◆ __get()
Getter
- Parameters
-
- Exceptions
-
Definition at line 78 of file Array.php.
79 #require_once 'Zend/Pdf/Exception.php'; 80 throw new Zend_Pdf_Exception(
'Undefined property: Zend_Pdf_Element_Array::$' . $property);
◆ __set()
__set |
( |
|
$property, |
|
|
|
$value |
|
) |
| |
Setter
- Parameters
-
- Exceptions
-
Definition at line 91 of file Array.php.
92 #require_once 'Zend/Pdf/Exception.php'; 93 throw new Zend_Pdf_Exception(
'Undefined property: Zend_Pdf_Element_Array::$' . $property);
◆ getType()
Return type of the element.
- Returns
- integer
Definition at line 101 of file Array.php.
◆ 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 139 of file Array.php.
141 $newArray =
new self();
143 foreach ($this->items as $key =>
$value) {
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
◆ setParentObject()
Set top level parent indirect object.
- Parameters
-
Definition at line 155 of file Array.php.
157 parent::setParentObject($parent);
159 foreach ($this->items as
$item) {
160 $item->setParentObject($parent);
◆ toPhp()
Convert PDF element to PHP type.
Dictionary is returned as an associative array
- Returns
- mixed
Definition at line 171 of file Array.php.
175 foreach ($this->items as
$item) {
176 $phpArray[] =
$item->toPhp();
◆ toString()
toString |
( |
|
$factory = null | ) |
|
Return object as string
- Parameters
-
- Returns
- string
Definition at line 113 of file Array.php.
118 foreach ($this->items as
$element) {
119 if (strlen($outStr) - $lastNL > 128) {
121 $lastNL = strlen($outStr);
◆ $items
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Element/Array.php