web/lib/Zend/Pdf/NameTree.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Pdf
    16  * @package    Zend_Pdf
    17  * @subpackage Actions
    17  * @subpackage Actions
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: NameTree.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: NameTree.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /** Internally used classes */
    23 /** Internally used classes */
    24 require_once 'Zend/Pdf/Element.php';
    24 require_once 'Zend/Pdf/Element.php';
    25 
    25 
    28  * PDF name tree representation class
    28  * PDF name tree representation class
    29  *
    29  *
    30  * @todo implement lazy resource loading so resources will be really loaded at access time
    30  * @todo implement lazy resource loading so resources will be really loaded at access time
    31  *
    31  *
    32  * @package    Zend_Pdf
    32  * @package    Zend_Pdf
    33  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    33  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    34  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    35  */
    35  */
    36 class Zend_Pdf_NameTree implements ArrayAccess, Iterator, Countable
    36 class Zend_Pdf_NameTree implements ArrayAccess, Iterator, Countable
    37 {
    37 {
    38     /**
    38     /**
    44     protected $_items = array();
    44     protected $_items = array();
    45 
    45 
    46     /**
    46     /**
    47      * Object constructor
    47      * Object constructor
    48      *
    48      *
    49      * @param $rootDictionary root of name dictionary
    49      * @param Zend_Pdf_Element $rootDictionary root of name dictionary
    50      */
    50      */
    51     public function __construct(Zend_Pdf_Element $rootDictionary)
    51     public function __construct(Zend_Pdf_Element $rootDictionary)
    52     {
    52     {
    53         if ($rootDictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) {
    53         if ($rootDictionary->getType() != Zend_Pdf_Element::TYPE_DICTIONARY) {
    54             require_once 'Zend/Pdf/Exception.php';
    54             require_once 'Zend/Pdf/Exception.php';