Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
zendframework1
library
Zend
Pdf
Destination
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
45
class
Zend_Pdf_Destination_Named
extends
Zend_Pdf_Destination
46
{
52
protected
$_nameElement
;
53
60
public
function
__construct
(
Zend_Pdf_Element
$resource
)
61
{
62
if
(
$resource
->getType() !=
Zend_Pdf_Element::TYPE_NAME
&&
$resource
->getType() !=
Zend_Pdf_Element::TYPE_STRING
) {
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
{
78
return
new
Zend_Pdf_Destination_Named
(
new
Zend_Pdf_Element_String
(
$name
));
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
}
Zend_Pdf_Element_String
Definition:
String.php:34
Zend_Pdf_Element\TYPE_NAME
const TYPE_NAME
Definition:
Element.php:35
$resource
$resource
Definition:
bulk.php:12
Zend_Pdf_Destination_Named\$_nameElement
$_nameElement
Definition:
Named.php:52
Zend_Pdf_Element
Definition:
Element.php:30
Zend_Pdf_Destination_Named
Definition:
Named.php:45
Zend_Pdf_Destination
Definition:
Destination.php:40
Zend_Pdf_Destination_Named\create
static create($name)
Definition:
Named.php:76
Zend_Pdf_Destination_Named\getName
getName()
Definition:
Named.php:86
Zend_Pdf_Element\TYPE_STRING
const TYPE_STRING
Definition:
Element.php:34
Zend_Pdf_Exception
Definition:
Exception.php:51
Zend_Pdf_Destination_Named\__construct
__construct(Zend_Pdf_Element $resource)
Definition:
Named.php:60
Zend_Pdf_Destination_Named\getResource
getResource()
Definition:
Named.php:97
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14