Class Zend_Pdf_ElementFactory

Description

PDF element factory.

Responsibility is to log PDF changes

Located in /Zend/Pdf/ElementFactory.php (line 76)


	
			
Variable Summary
Method Summary
 Zend_Pdf_ElementFactory __construct (integer $objCount)
 void attach (Zend_Pdf_ElementFactory $factory)
 integer getEnumerationShift (Zend_Pdf_ElementFactory $factory)
 integer getId ()
 integer getObjectCount ()
 boolean isModified ()
 array listModifiedObjects ([Zend_Pdf_ElementFactory $rootFactory = null])
 void markAsModified (Zend_Pdf_Element_Object $obj)
 Zend_Pdf_Element_Object newObject (Zend_Pdf_Element $objectValue)
 Zend_Pdf_Element_Object newStreamObject (mixed $streamValue, mixed $objectValue)
 void remove (Zend_Pdf_Element_Object $obj)
 void setObjectCount (integer $objCount)
 integer _calculateShift (Zend_Pdf_ElementFactory $factory)
Variables
array $_attachedFactories (line 112)

List of the attached object factories.

Array of Zend_Pdf_ElementFactory objects

  • access: private
integer $_factoryId (line 120)

Factory internal id

  • access: private
integer $_identity = 0 (line 127)

Identity, used for factory id generation

  • static:
  • access: private
array $_modifiedObjects (line 86)

List of the modified objects.

Also contains new and removed objects

Array: ojbectNumber => Zend_Pdf_Element_Object

  • access: private
integer $_objectCount (line 103)

PDF object counter.

Actually it's an object number for new PDF object

  • access: private
array $_removedObjects (line 95)

List of the removed objects

Array: ojbectNumber => Zend_Pdf_Element_Object

  • access: private
array $_shiftCalculationCache = array() (line 135)

Internal cache to save calculated shifts

  • access: private
Methods
Constructor __construct (line 142)

Object constructor

  • access: public
Zend_Pdf_ElementFactory __construct (integer $objCount)
  • integer $objCount
attach (line 193)

Attach factory to the current;

  • access: public
void attach (Zend_Pdf_ElementFactory $factory)
getEnumerationShift (line 250)

Retrive object enumeration shift.

  • access: public
  • throws: Zend_Pdf_Exception
integer getEnumerationShift (Zend_Pdf_ElementFactory $factory)
getId (line 156)

Get factory ID

  • access: public
integer getId ()
getObjectCount (line 176)

Get object counter

  • access: public
integer getObjectCount ()
isModified (line 368)

Check if PDF file was modified

  • access: public
boolean isModified ()
listModifiedObjects (line 330)

Enumerate modified objects.

Returns array of Zend_Pdf_UpdateInfoContainer

  • access: public
array listModifiedObjects ([Zend_Pdf_ElementFactory $rootFactory = null])
markAsModified (line 265)

Mark object as modified in context of current factory.

  • access: public
  • throws: Zend_Pdf_Exception
void markAsModified (Zend_Pdf_Element_Object $obj)
newObject (line 300)

Generate new Zend_Pdf_Element_Object

  • access: public
  • todo: Reusage of the freed object. It's not a support of new feature, but only improvement.
Zend_Pdf_Element_Object newObject (Zend_Pdf_Element $objectValue)
newStreamObject (line 315)

Generate new Zend_Pdf_Element_Object_Stream

  • access: public
  • todo: Reusage of the freed object. It's not a support of new feature, but only improvement.
Zend_Pdf_Element_Object newStreamObject (mixed $streamValue, mixed $objectValue)
  • mixed $objectValue
remove (line 281)

Remove object in context of current factory.

  • access: public
  • throws: Zend_Pdf_Exception
void remove (Zend_Pdf_Element_Object $obj)
setObjectCount (line 166)

Set object counter

  • access: public
void setObjectCount (integer $objCount)
  • integer $objCount
_calculateShift (line 215)

Calculate object enumeration shift.

  • access: private
integer _calculateShift (Zend_Pdf_ElementFactory $factory)

Documentation generated on Tue, 18 Apr 2006 11:54:47 -0700 by phpDocumentor 1.3.0RC3