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
Server
Method
Parameter.php
Go to the documentation of this file.
1
<?php
32
class
Zend_Server_Method_Parameter
33
{
37
protected
$_defaultValue
;
38
42
protected
$_description
=
''
;
43
47
protected
$_name
;
48
52
protected
$_optional
=
false
;
53
57
protected
$_type
=
'mixed'
;
58
65
public
function
__construct
(
$options
=
null
)
66
{
67
if
(is_array(
$options
)) {
68
$this->
setOptions
(
$options
);
69
}
70
}
71
78
public
function
setOptions
(array
$options
)
79
{
80
foreach
(
$options
as $key =>
$value
) {
81
$method
=
'set'
. ucfirst($key);
82
if
(method_exists($this,
$method
)) {
83
$this->
$method
(
$value
);
84
}
85
}
86
return
$this;
87
}
88
95
public
function
setDefaultValue
($defaultValue)
96
{
97
$this->_defaultValue = $defaultValue;
98
return
$this;
99
}
100
106
public
function
getDefaultValue
()
107
{
108
return
$this->_defaultValue
;
109
}
110
117
public
function
setDescription
(
$description
)
118
{
119
$this->_description = (string)
$description
;
120
return
$this;
121
}
122
128
public
function
getDescription
()
129
{
130
return
$this->_description
;
131
}
132
139
public
function
setName
(
$name
)
140
{
141
$this->_name = (string)
$name
;
142
return
$this;
143
}
144
150
public
function
getName
()
151
{
152
return
$this->_name
;
153
}
154
161
public
function
setOptional
($flag)
162
{
163
$this->_optional = (bool) $flag;
164
return
$this;
165
}
166
172
public
function
isOptional
()
173
{
174
return
$this->_optional
;
175
}
176
183
public
function
setType
(
$type
)
184
{
185
$this->_type = (string)
$type
;
186
return
$this;
187
}
188
194
public
function
getType
()
195
{
196
return
$this->_type
;
197
}
198
204
public
function
toArray
()
205
{
206
return
array(
207
'type'
=> $this->
getType
(),
208
'name'
=> $this->
getName
(),
209
'optional'
=> $this->
isOptional
(),
210
'defaultValue'
=> $this->
getDefaultValue
(),
211
'description'
=> $this->
getDescription
(),
212
);
213
}
214
}
$description
$description
Definition:
pre_composer_update_2.3.php:162
Zend_Server_Method_Parameter\setOptions
setOptions(array $options)
Definition:
Parameter.php:78
Zend_Server_Method_Parameter\$_defaultValue
$_defaultValue
Definition:
Parameter.php:37
Zend_Server_Method_Parameter\$_type
$_type
Definition:
Parameter.php:57
Zend_Server_Method_Parameter\setOptional
setOptional($flag)
Definition:
Parameter.php:161
Zend_Server_Method_Parameter
Definition:
Parameter.php:32
Zend_Server_Method_Parameter\setType
setType($type)
Definition:
Parameter.php:183
Zend_Server_Method_Parameter\setDefaultValue
setDefaultValue($defaultValue)
Definition:
Parameter.php:95
Zend_Server_Method_Parameter\getDefaultValue
getDefaultValue()
Definition:
Parameter.php:106
Zend_Server_Method_Parameter\getType
getType()
Definition:
Parameter.php:194
Zend_Server_Method_Parameter\isOptional
isOptional()
Definition:
Parameter.php:172
Zend_Server_Method_Parameter\setDescription
setDescription($description)
Definition:
Parameter.php:117
$type
$type
Definition:
item.phtml:13
Zend_Server_Method_Parameter\__construct
__construct($options=null)
Definition:
Parameter.php:65
Zend_Server_Method_Parameter\getName
getName()
Definition:
Parameter.php:150
$value
$value
Definition:
gender.phtml:16
Zend_Server_Method_Parameter\setName
setName($name)
Definition:
Parameter.php:139
Zend_Server_Method_Parameter\toArray
toArray()
Definition:
Parameter.php:204
$method
$method
Definition:
info.phtml:13
Zend_Server_Method_Parameter\$_name
$_name
Definition:
Parameter.php:47
Zend_Server_Method_Parameter\$_optional
$_optional
Definition:
Parameter.php:52
Zend_Server_Method_Parameter\getDescription
getDescription()
Definition:
Parameter.php:128
$options
$options
Definition:
multiple_mixed_products.php:29
Zend_Server_Method_Parameter\$_description
$_description
Definition:
Parameter.php:42
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14