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
Element
Stream.php
Go to the documentation of this file.
1
<?php
24
#require_once 'Zend/Pdf.php';
25
26
28
#require_once 'Zend/Pdf/Element.php';
29
38
class
Zend_Pdf_Element_Stream
extends
Zend_Pdf_Element
39
{
45
public
$value
;
46
47
53
public
function
__construct
($val)
54
{
55
$this->
value
=
Zend_Pdf::getMemoryManager
()->create($val);
56
}
57
58
64
public
function
getType
()
65
{
66
return
Zend_Pdf_Element::TYPE_STREAM
;
67
}
68
69
76
public
function
length
()
77
{
78
return
strlen($this->
value
->getRef());
79
}
80
81
86
public
function
clear
()
87
{
88
$ref = &$this->
value
->getRef();
89
$ref =
''
;
90
$this->
value
->touch();
91
}
92
93
99
public
function
append
($val)
100
{
101
$ref = &$this->
value
->getRef();
102
$ref .= (string)$val;
103
$this->
value
->touch();
104
}
105
106
115
public
function
makeClone
(
Zend_Pdf_ElementFactory
$factory
, array &$processed,
$mode
)
116
{
117
return
new
self
($this->
value
->getRef());
118
}
119
126
public
function
toString
(
$factory
=
null
)
127
{
128
return
"stream\n"
. $this->
value
->getRef() .
"\nendstream"
;
129
}
130
}
Zend_Pdf_Element_Stream
Definition:
Stream.php:38
Zend_Pdf_Element\TYPE_STREAM
const TYPE_STREAM
Definition:
Element.php:38
value
$block setTitle( 'CMS Block Title') -> setIdentifier('fixture_block') ->setContent('< h1 >Fixture Block Title</h1 >< a href=" store url</a><p> Config value
Definition:
block.php:9
Zend_Pdf_Element_Stream\$value
$value
Definition:
Stream.php:45
Zend_Pdf_Element_Stream\makeClone
makeClone(Zend_Pdf_ElementFactory $factory, array &$processed, $mode)
Definition:
Stream.php:115
Zend_Pdf_Element_Stream\toString
toString($factory=null)
Definition:
Stream.php:126
Zend_Pdf_Element_Stream\append
append($val)
Definition:
Stream.php:99
Zend_Pdf_Element_Stream\length
length()
Definition:
Stream.php:76
Zend_Pdf_Element_Stream\getType
getType()
Definition:
Stream.php:64
Zend_Pdf_Element
Definition:
Element.php:30
Zend_Pdf_ElementFactory
Definition:
ElementFactory.php:34
$mode
if($exist=($block->getProductCollection() && $block->getProductCollection() ->getSize())) $mode
Definition:
grid.phtml:15
Zend_Pdf\getMemoryManager
static getMemoryManager()
Definition:
Pdf.php:236
$factory
$factory
Definition:
category_multiple_stores.php:10
Zend_Pdf_Element_Stream\clear
clear()
Definition:
Stream.php:86
Zend_Pdf_Element_Stream\__construct
__construct($val)
Definition:
Stream.php:53