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
module-eav
Model
Attribute
Data
Boolean.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Eav\Model\Attribute\Data
;
7
13
class
Boolean
extends
\Magento\Eav\Model\Attribute\Data\Select
14
{
21
protected
function
_getOptionText
(
$value
)
22
{
23
switch
(
$value
) {
24
case
'0'
:
25
$text
=
__
(
'No'
);
26
break
;
27
case
'1'
:
28
$text
=
__
(
'Yes'
);
29
break
;
30
default
:
31
$text
=
''
;
32
break
;
33
}
34
return
$text
;
35
}
36
}
__
__()
Definition:
__.php:13
$text
endifif( $block->getLastPageNum()>1)( 'Page') ?></strong >< ul class $text
Definition:
pager.phtml:43
Magento\Eav\Model\Attribute\Data
Definition:
AbstractData.php:7
Magento\Eav\Model\Attribute\Data\Boolean
Definition:
Boolean.php:13
$value
$value
Definition:
gender.phtml:16
Magento\Eav\Model\Attribute\Data\Boolean\_getOptionText
_getOptionText($value)
Definition:
Boolean.php:21