Definition at line 44 of file URI.php.
◆ __construct()
__construct |
( |
Zend_Pdf_Element |
$dictionary, |
|
|
SplObjectStorage |
$processedActions |
|
) |
| |
Object constructor
- Parameters
-
Zend_Pdf_Element_Dictionary | $dictionary | |
SplObjectStorage | $processedActions | list of already processed action dictionaries, used to avoid cyclic references |
- Exceptions
-
Definition at line 53 of file URI.php.
55 parent::__construct($dictionary, $processedActions);
57 if ($dictionary->URI ===
null) {
58 #require_once 'Zend/Pdf/Exception.php';
◆ _validateUri()
static _validateUri |
( |
|
$uri | ) |
|
|
staticprotected |
Validate URI
- Parameters
-
- Returns
- true
- Exceptions
-
Definition at line 70 of file URI.php.
72 $scheme = parse_url((
string)$uri, PHP_URL_SCHEME);
73 if ($scheme ===
false || $scheme ===
null) {
74 #require_once 'Zend/Pdf/Exception.php';
◆ create()
static create |
( |
|
$uri, |
|
|
|
$isMap = false |
|
) |
| |
|
static |
Create new Zend_Pdf_Action_URI object using specified uri
- Parameters
-
string | $uri | The URI to resolve, encoded in 7-bit ASCII |
boolean | $isMap | A flag specifying whether to track the mouse position when the URI is resolved |
- Returns
- Zend_Pdf_Action_URI
Definition at line 86 of file URI.php.
93 $dictionary->Next =
null;
static _validateUri($uri)
◆ getIsMap()
Get IsMap property
If the IsMap flag is true and the user has triggered the URI action by clicking an annotation, the coordinates of the mouse position at the time the action is performed should be transformed from device space to user space and then offset relative to the upper-left corner of the annotation rectangle.
- Returns
- boolean
Definition at line 162 of file URI.php.
164 return $this->_actionDictionary->IsMap !==
null &&
165 $this->_actionDictionary->IsMap->value;
◆ getUri()
Get URI to resolve
- Returns
- string
Definition at line 123 of file URI.php.
125 return $this->_actionDictionary->URI->value;
◆ setIsMap()
Set IsMap property
If the IsMap flag is true and the user has triggered the URI action by clicking an annotation, the coordinates of the mouse position at the time the action is performed should be transformed from device space to user space and then offset relative to the upper-left corner of the annotation rectangle.
- Parameters
-
boolean | $isMap | A flag specifying whether to track the mouse position when the URI is resolved |
- Returns
- Zend_Pdf_Action_URI
Definition at line 139 of file URI.php.
141 $this->_actionDictionary->touch();
146 $this->_actionDictionary->IsMap =
null;
◆ setUri()
Set URI to resolve
- Parameters
-
string | $uri | The uri to resolve, encoded in 7-bit ASCII. |
- Returns
- Zend_Pdf_Action_URI
Definition at line 108 of file URI.php.
112 $this->_actionDictionary->touch();
static _validateUri($uri)
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Pdf/Action/URI.php