Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Zend_Pdf_UpdateInfoContainer Class Reference

Public Member Functions

 __construct ($objNum, $genNum, $isFree, $dump=null)
 
 getObjNum ()
 
 getGenNum ()
 
 isFree ()
 
 getObjectDump ()
 

Detailed Description

Definition at line 30 of file UpdateInfoContainer.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $objNum,
  $genNum,
  $isFree,
  $dump = null 
)

Object constructor

Parameters
integer$objCount

Definition at line 66 of file UpdateInfoContainer.php.

67  {
68  $this->_objNum = $objNum;
69  $this->_genNum = $genNum;
70  $this->_isFree = $isFree;
71 
72  if ($dump !== null) {
73  if (strlen($dump) > 1024) {
74  #require_once 'Zend/Pdf.php';
75  $this->_dump = Zend_Pdf::getMemoryManager()->create($dump);
76  } else {
77  $this->_dump = $dump;
78  }
79  }
80  }
static getMemoryManager()
Definition: Pdf.php:236

Member Function Documentation

◆ getGenNum()

getGenNum ( )

Get generation number

Returns
integer

Definition at line 98 of file UpdateInfoContainer.php.

99  {
100  return $this->_genNum;
101  }

◆ getObjectDump()

getObjectDump ( )

Get string representation of the object

Returns
string

Definition at line 118 of file UpdateInfoContainer.php.

119  {
120  if ($this->_dump === null) {
121  return '';
122  }
123 
124  if (is_string($this->_dump)) {
125  return $this->_dump;
126  }
127 
128  return $this->_dump->getRef();
129  }

◆ getObjNum()

getObjNum ( )

Get object number

Returns
integer

Definition at line 88 of file UpdateInfoContainer.php.

89  {
90  return $this->_objNum;
91  }

◆ isFree()

isFree ( )

Check, that object is free

Returns
boolean

Definition at line 108 of file UpdateInfoContainer.php.

109  {
110  return $this->_isFree;
111  }

The documentation for this class was generated from the following file: