Pdf/Element/Reference.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Pdf  
Version
$Id$  

\Zend_Pdf_Element_Reference

Package: Zend_Pdf
PDF file 'reference' element implementation
Parent(s)
\Zend_Pdf_Element
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprivate\Zend_Pdf_Element_Reference_Context $_context
Reference context
>VPropertyprivate\Zend_Pdf_ElementFactory $_factory
Reference to the factory.
It's the same as referenced object factory, but we save it here to avoid unnecessary dereferencing, whech can produce cascade dereferencing and parsing. The same for duplication of getFactory() function. It can be processed by __call() method, but we catch it here.
Details
Type
\Zend_Pdf_ElementFactory
>VPropertyprivateinteger $_genNum
Generation number
Details
Type
integer
>VPropertyprivateinteger $_objNum
Object number within PDF file
Details
Type
integer
>VPropertyprivatemixed $_ref
Object value The reference to the object
Details
Type
mixed

Methods

methodpublic__call(string $method, array $args) : mixed

Call handler

Parameters
NameTypeDescription
$methodstring
$argsarray
Returns
TypeDescription
mixed
methodpublic__construct(integer $objNum, integer $genNum = 0, \Zend_Pdf_Element_Reference_Context $context, \Zend_Pdf_ElementFactory $factory) : void

Object constructor:

Parameters
NameTypeDescription
$objNuminteger
$genNuminteger
$context\Zend_Pdf_Element_Reference_Context
$factory\Zend_Pdf_ElementFactory
Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublic__get(string $property) : mixed

Get handler

Parameters
NameTypeDescription
$propertystring
Returns
TypeDescription
mixed
methodpublic__set(string $property, mixed $value) : void

Set handler

Parameters
NameTypeDescription
$propertystring
$valuemixed
methodprivate_dereference() : void

Dereference.

Take inderect object, take $value member of this object (must be Zend_Pdf_Element), take reference to the $value member of this object and assign it to $value member of current PDF Reference object $obj can be null
Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpubliccleanUp() : void

Clean up resources

methodpublicgetFactory() : \Zend_Pdf_ElementFactory

Check, that object is generated by specified factory

Returns
TypeDescription
\Zend_Pdf_ElementFactory
methodpublicgetObject() : \Zend_Pdf_Element_Object

Return object, which can be used to identify object and its references identity

Returns
TypeDescription
\Zend_Pdf_Element_Object
methodpublicgetType() : integer

Return type of the element.

Returns
TypeDescription
integer
methodpublicmakeClone(\Zend_Pdf_ElementFactory $factory,  $processed, integer $mode) : void

Detach PDF object from the factory (if applicable), clone it and attach to new factory.

Parameters
NameTypeDescription
$factory\Zend_Pdf_ElementFactory

The factory to attach

$processed
$modeinteger

Cloning mode (defines filter for objects cloning)

Details
Returns
Zend_Pdf_Element  
methodpublictoPhp() : mixed

Convert PDF element to PHP type.

Returns
TypeDescription
mixed
methodpublictoString(\Zend_Pdf_Factory $factory = null) : string

Return reference to the object

Parameters
NameTypeDescription
$factory\Zend_Pdf_Factory
Returns
TypeDescription
string
methodpublictouch() : void

Mark object as modified, to include it into new PDF file segment.

Documentation was generated by phpDocumentor 2.2.0 .