Definition at line 38 of file Dictionary.php.
◆ __construct()
__construct |
( |
|
$val = null | ) |
|
Object constructor
- Parameters
-
- Exceptions
-
Definition at line 55 of file Dictionary.php.
59 }
else if (!is_array($val)) {
60 #require_once 'Zend/Pdf/Exception.php'; 66 #require_once 'Zend/Pdf/Exception.php'; 69 if (!is_string(
$name)) {
70 #require_once 'Zend/Pdf/Exception.php';
if(!isset($_GET['name'])) $name
◆ __get()
◆ __set()
Set handler
- Parameters
-
string | $property | |
mixed | $value | |
Definition at line 121 of file Dictionary.php.
124 unset($this->_items[
$item]);
◆ add()
Definition at line 85 of file Dictionary.php.
87 $this->_items[
$name->value] = $val;
if(!isset($_GET['name'])) $name
◆ getKeys()
Return dictionary keys
- Returns
- array
Definition at line 95 of file Dictionary.php.
97 return array_keys($this->_items);
◆ getType()
Return type of the element.
- Returns
- integer
Definition at line 135 of file Dictionary.php.
◆ makeClone()
Detach PDF object from the factory (if applicable), clone it and attach to new factory.
- Parameters
-
Zend_Pdf_ElementFactory | $factory | The factory to attach |
array | &$processed | List of already processed indirect objects, used to avoid objects duplication |
integer | $mode | Cloning mode (defines filter for objects cloning) |
- Returns
- Zend_Pdf_Element
- Exceptions
-
Definition at line 180 of file Dictionary.php.
182 if (isset($this->_items[
'Type'])) {
183 if ($this->_items[
'Type']->
value ==
'Pages') {
189 if ($this->_items[
'Type']->
value ==
'Page' &&
197 $newDictionary =
new self();
198 foreach ($this->_items as $key =>
$value) {
202 return $newDictionary;
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
const CLONE_MODE_SKIP_PAGES
◆ setParentObject()
Set top level parent indirect object.
- Parameters
-
Definition at line 210 of file Dictionary.php.
212 parent::setParentObject($parent);
214 foreach ($this->_items as
$item) {
215 $item->setParentObject($parent);
◆ toPhp()
Convert PDF element to PHP type.
Dictionary is returned as an associative array
- Returns
- mixed
Definition at line 226 of file Dictionary.php.
230 foreach ($this->_items as $itemName =>
$item) {
231 $phpArray[$itemName] =
$item->toPhp();
◆ toString()
toString |
( |
|
$factory = null | ) |
|
Return object as string
- Parameters
-
- Returns
- string
Definition at line 147 of file Dictionary.php.
154 #require_once 'Zend/Pdf/Exception.php'; 158 if (strlen($outStr) - $lastNL > 128) {
160 $lastNL = strlen($outStr);
if(!isset($_GET['name'])) $name
The documentation for this class was generated from the following file: