Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Named.php
Go to the documentation of this file.
1 <?php
24 #require_once 'Zend/Pdf/Element.php';
25 #require_once 'Zend/Pdf/Element/String.php';
26 
27 
29 #require_once 'Zend/Pdf/Destination.php';
30 
46 {
52  protected $_nameElement;
53 
61  {
63  #require_once 'Zend/Pdf/Exception.php';
64  throw new Zend_Pdf_Exception('Named destination resource must be a PDF name or a PDF string.');
65  }
66 
67  $this->_nameElement = $resource;
68  }
69 
76  public static function create($name)
77  {
79  }
80 
86  public function getName()
87  {
88  return $this->_nameElement->value;
89  }
90 
97  public function getResource()
98  {
99  return $this->_nameElement;
100  }
101 }
const TYPE_NAME
Definition: Element.php:35
$resource
Definition: bulk.php:12
static create($name)
Definition: Named.php:76
const TYPE_STRING
Definition: Element.php:34
__construct(Zend_Pdf_Element $resource)
Definition: Named.php:60
if(!isset($_GET['name'])) $name
Definition: log.php:14