Pdf/Element/Dictionary.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_Dictionary

Package: Zend_Pdf
PDF file 'dictionary' 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

>VPropertyprivatearray $_items = array()
Dictionary elements Array of Zend_Pdf_Element objects ('name' => Zend_Pdf_Element)
Default valuearray()Details
Type
array

Methods

methodpublic__construct(array $val = null) : void

Object constructor

Parameters
NameTypeDescription
$valarray
  • array of Zend_Pdf_Element objects
Throws
ExceptionDescription
\Zend_Pdf_Exception
methodpublic__get( $item) : \Zend_Pdf_Element

Get handler

Parameters
NameTypeDescription
$item
Returns
TypeDescription
\Zend_Pdf_Element| null
methodpublic__set( $item, mixed $value) : void

Set handler

Parameters
NameTypeDescription
$item
$valuemixed
methodpublicadd( $name, \Zend_Pdf_Element $val) : void

Add element to an array

Parameters
NameTypeDescription
$name
$val\Zend_Pdf_Element
  • Zend_Pdf_Element object
Throws
ExceptionDescription
\Zend_Pdf_Exception
Details
Name
Zend_Pdf_Element_Name $name  
methodpublicgetKeys() : array

Return dictionary keys

Returns
TypeDescription
array
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)

Throws
ExceptionDescription
\Zend_Pdf_Exception
Details
Returns
Zend_Pdf_Element  
methodpublicsetParentObject(\Zend_Pdf_Element_Object $parent) : void

Set top level parent indirect object.

Parameters
NameTypeDescription
$parent\Zend_Pdf_Element_Object
methodpublictoPhp() : mixed

Convert PDF element to PHP type.

Dictionary is returned as an associative array
Returns
TypeDescription
mixed
methodpublictoString(\Zend_Pdf_Factory $factory = null) : string

Return object as string

Parameters
NameTypeDescription
$factory\Zend_Pdf_Factory
Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.2.0 .