Definition at line 38 of file Reference.php.
◆ __construct()
Object constructor:
- Parameters
-
- Exceptions
-
Definition at line 91 of file Reference.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;
◆ __call()
__call |
( |
|
$method, |
|
|
|
$args |
|
) |
| |
Call handler
- Parameters
-
- Returns
- mixed
Definition at line 273 of file Reference.php.
275 if ($this->_ref ===
null) {
276 $this->_dereference();
279 return call_user_func_array(array($this->_ref,
$method), $args);
◆ __get()
Get handler
- Parameters
-
- Returns
- mixed
Definition at line 242 of file Reference.php.
244 if ($this->_ref ===
null) {
245 $this->_dereference();
248 return $this->_ref->$property;
◆ __set()
__set |
( |
|
$property, |
|
|
|
$value |
|
) |
| |
Set handler
- Parameters
-
string | $property | |
mixed | $value | |
Definition at line 257 of file Reference.php.
259 if ($this->_ref ===
null) {
260 $this->_dereference();
263 $this->_ref->$property =
$value;
◆ cleanUp()
◆ getFactory()
◆ getObject()
Return object, which can be used to identify object and its references identity
- Returns
- Zend_Pdf_Element_Object
Definition at line 227 of file Reference.php.
229 if ($this->_ref ===
null) {
230 $this->_dereference();
◆ getType()
Return type of the element.
- Returns
- integer
Definition at line 125 of file Reference.php.
127 if ($this->_ref ===
null) {
128 $this->_dereference();
131 return $this->_ref->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 192 of file Reference.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];
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
◆ toPhp()
Convert PDF element to PHP type.
- Returns
- mixed
Definition at line 295 of file Reference.php.
297 if ($this->_ref ===
null) {
298 $this->_dereference();
301 return $this->_ref->toPhp();
◆ toString()
toString |
( |
|
$factory = null | ) |
|
Return reference to the object
- Parameters
-
- Returns
- string
Definition at line 141 of file Reference.php.
146 $shift =
$factory->getEnumerationShift($this->_factory);
149 return $this->_objNum + $shift .
' ' . $this->_genNum .
' R';
◆ touch()
Mark object as modified, to include it into new PDF file segment.
Definition at line 213 of file Reference.php.
215 if ($this->_ref ===
null) {
216 $this->_dereference();
219 $this->_ref->touch();
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Element/Reference.php