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
Filter
Compress
CompressAbstract.php
Go to the documentation of this file.
1
<?php
25
#require_once 'Zend/Filter/Compress/CompressInterface.php';
26
35
abstract
class
Zend_Filter_Compress_CompressAbstract
implements
Zend_Filter_Compress_CompressInterface
36
{
42
public
function
__construct
(
$options
=
null
)
43
{
44
if
(
$options
instanceof
Zend_Config
) {
45
$options
=
$options
->toArray();
46
}
47
48
if
(is_array(
$options
)) {
49
$this->
setOptions
(
$options
);
50
}
51
}
52
59
public
function
getOptions
(
$option
=
null
)
60
{
61
if
(
$option
===
null
) {
62
return
$this->_options;
63
}
64
65
if
(!array_key_exists(
$option
, $this->_options)) {
66
return
null
;
67
}
68
69
return
$this->_options[
$option
];
70
}
71
78
public
function
setOptions
(array
$options
)
79
{
80
foreach
(
$options
as $key =>
$option
) {
81
$method
=
'set'
. $key;
82
if
(method_exists($this,
$method
)) {
83
$this->
$method
(
$option
);
84
}
85
}
86
87
return
$this;
88
}
89
}
Zend_Filter_Compress_CompressAbstract\getOptions
getOptions($option=null)
Definition:
CompressAbstract.php:59
Zend_Filter_Compress_CompressInterface
Definition:
CompressInterface.php:30
Zend_Filter_Compress_CompressAbstract\setOptions
setOptions(array $options)
Definition:
CompressAbstract.php:78
Zend_Filter_Compress_CompressAbstract\__construct
__construct($options=null)
Definition:
CompressAbstract.php:42
$method
$method
Definition:
info.phtml:13
Zend_Config
Zend_Filter_Compress_CompressAbstract
Definition:
CompressAbstract.php:35
$option
$option
Definition:
product_configurable_with_single_child.php:38
$options
$options
Definition:
multiple_mixed_products.php:29