Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Static Public Member Functions | Protected Attributes
Zend_Pdf_Destination_Named Class Reference
Inheritance diagram for Zend_Pdf_Destination_Named:
Zend_Pdf_Destination Zend_Pdf_Target

Public Member Functions

 __construct (Zend_Pdf_Element $resource)
 
 getName ()
 
 getResource ()
 
- Public Member Functions inherited from Zend_Pdf_Target
 getResource ()
 

Static Public Member Functions

static create ($name)
 
- Static Public Member Functions inherited from Zend_Pdf_Destination
static load (Zend_Pdf_Element $resource)
 
- Static Public Member Functions inherited from Zend_Pdf_Target
static load (Zend_Pdf_Element $resource)
 

Protected Attributes

 $_nameElement
 

Detailed Description

Definition at line 45 of file Named.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Zend_Pdf_Element  $resource)

Named destination object constructor

Parameters
Zend_Pdf_Element$resource
Exceptions
Zend_Pdf_Exception

Definition at line 60 of file Named.php.

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  }
const TYPE_NAME
Definition: Element.php:35
$resource
Definition: bulk.php:12
const TYPE_STRING
Definition: Element.php:34

Member Function Documentation

◆ create()

static create (   $name)
static

Create named destination object

Parameters
string$name
Returns
Zend_Pdf_Destination_Named

Definition at line 76 of file Named.php.

77  {
79  }
if(!isset($_GET['name'])) $name
Definition: log.php:14

◆ getName()

getName ( )

Get name

Returns
Zend_Pdf_Element

Definition at line 86 of file Named.php.

87  {
88  return $this->_nameElement->value;
89  }

◆ getResource()

getResource ( )

Get resource

Definition at line 97 of file Named.php.

98  {
99  return $this->_nameElement;
100  }

Field Documentation

◆ $_nameElement

$_nameElement
protected

Definition at line 52 of file Named.php.


The documentation for this class was generated from the following file: