web/lib/Zend/Pdf/Destination/Named.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 Destination
    17  * @subpackage Destination
    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: Named.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: Named.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 require_once 'Zend/Pdf/Element/String.php';
    25 require_once 'Zend/Pdf/Element/String.php';
    37  * the smaller of the two, centering the page within the window in the other
    37  * the smaller of the two, centering the page within the window in the other
    38  * dimension.
    38  * dimension.
    39  *
    39  *
    40  * @package    Zend_Pdf
    40  * @package    Zend_Pdf
    41  * @subpackage Destination
    41  * @subpackage Destination
    42  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    42  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    43  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    43  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    44  */
    44  */
    45 class Zend_Pdf_Destination_Named extends Zend_Pdf_Destination
    45 class Zend_Pdf_Destination_Named extends Zend_Pdf_Destination
    46 {
    46 {
    47     /**
    47     /**
    52     protected $_nameElement;
    52     protected $_nameElement;
    53 
    53 
    54     /**
    54     /**
    55      * Named destination object constructor
    55      * Named destination object constructor
    56      *
    56      *
    57      * @param $resource
    57      * @param Zend_Pdf_Element $resource
    58      * @throws Zend_Pdf_Exception
    58      * @throws Zend_Pdf_Exception
    59      */
    59      */
    60     public function __construct(Zend_Pdf_Element $resource)
    60     public function __construct(Zend_Pdf_Element $resource)
    61     {
    61     {
    62         if ($resource->getType() != Zend_Pdf_Element::TYPE_NAME  &&  $resource->getType() != Zend_Pdf_Element::TYPE_STRING) {
    62         if ($resource->getType() != Zend_Pdf_Element::TYPE_NAME  &&  $resource->getType() != Zend_Pdf_Element::TYPE_STRING) {