Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($objCount) | |
getFactory () | |
close () | |
resolve () | |
getId () | |
setObjectCount ($objCount) | |
getObjectCount () | |
attach (Zend_Pdf_ElementFactory_Interface $factory) | |
calculateShift (Zend_Pdf_ElementFactory_Interface $factory) | |
cleanEnumerationShiftCache () | |
getEnumerationShift (Zend_Pdf_ElementFactory_Interface $factory) | |
markAsModified (Zend_Pdf_Element_Object $obj) | |
remove (Zend_Pdf_Element_Object $obj) | |
newObject (Zend_Pdf_Element $objectValue) | |
newStreamObject ($streamValue) | |
listModifiedObjects ($rootFactory=null) | |
registerObject (Zend_Pdf_Element_Object $obj, $refString) | |
fetchObject ($refString) | |
isModified () | |
Static Public Member Functions | |
static | createFactory ($objCount) |
Definition at line 34 of file ElementFactory.php.
__construct | ( | $objCount | ) |
attach | ( | Zend_Pdf_ElementFactory_Interface | $factory | ) |
Attach factory to the current;
Zend_Pdf_ElementFactory_Interface | $factory |
Don't attach factory twice. We do not check recusively because of nature of attach operation (Pages are always attached to the Documents, Fonts are always attached to the pages even if pages already use Document level object factory and so on)
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 210 of file ElementFactory.php.
calculateShift | ( | Zend_Pdf_ElementFactory_Interface | $factory | ) |
Calculate object enumeration shift.
Zend_Pdf_ElementFactory_Interface | $factory |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 232 of file ElementFactory.php.
cleanEnumerationShiftCache | ( | ) |
Clean enumeration shift cache. Has to be used after PDF render operation to let followed updates be correct.
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 264 of file ElementFactory.php.
close | ( | ) |
Close factory and clean-up resources
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 146 of file ElementFactory.php.
|
static |
Factory generator
integer | $objCount |
Definition at line 135 of file ElementFactory.php.
fetchObject | ( | $refString | ) |
Fetch object specified by reference
string | $refString |
Definition at line 417 of file ElementFactory.php.
getEnumerationShift | ( | Zend_Pdf_ElementFactory_Interface | $factory | ) |
Retrive object enumeration shift.
Zend_Pdf_ElementFactory_Interface | $factory |
Zend_Pdf_Exception |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 280 of file ElementFactory.php.
getFactory | ( | ) |
Get factory
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 124 of file ElementFactory.php.
getId | ( | ) |
Get factory ID
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 173 of file ElementFactory.php.
getObjectCount | ( | ) |
Get object counter
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 193 of file ElementFactory.php.
isModified | ( | ) |
Check if PDF file was modified
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 431 of file ElementFactory.php.
listModifiedObjects | ( | $rootFactory = null | ) |
Enumerate modified objects. Returns array of Zend_Pdf_UpdateInfoContainer
Zend_Pdf_ElementFactory_Interface | $rootFactory |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 365 of file ElementFactory.php.
markAsModified | ( | Zend_Pdf_Element_Object | $obj | ) |
Mark object as modified in context of current factory.
Zend_Pdf_Element_Object | $obj |
Zend_Pdf_Exception |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 296 of file ElementFactory.php.
newObject | ( | Zend_Pdf_Element | $objectValue | ) |
Generate new Zend_Pdf_Element_Object
Zend_Pdf_Element | $objectValue |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 333 of file ElementFactory.php.
newStreamObject | ( | $streamValue | ) |
Generate new Zend_Pdf_Element_Object_Stream
mixed | $objectValue |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 349 of file ElementFactory.php.
registerObject | ( | Zend_Pdf_Element_Object | $obj, |
$refString | |||
) |
Register object in the factory
It's used to clear "parent object" referencies when factory is closed and clean up resources
string | $refString | |
Zend_Pdf_Element_Object | $obj |
Definition at line 406 of file ElementFactory.php.
remove | ( | Zend_Pdf_Element_Object | $obj | ) |
Remove object in context of current factory.
Zend_Pdf_Element_Object | $obj |
Zend_Pdf_Exception |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 313 of file ElementFactory.php.
resolve | ( | ) |
Get source factory object
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 163 of file ElementFactory.php.
setObjectCount | ( | $objCount | ) |
Set object counter
integer | $objCount |
Implements Zend_Pdf_ElementFactory_Interface.
Definition at line 183 of file ElementFactory.php.