Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (\Magento\Eav\Model\ResourceModel\Entity\AttributeFactory $eavAttrEntity) | |
getAllOptions () | |
getOptionArray () | |
getOptionText ($value) | |
getFlatColumns () | |
getFlatIndexes () | |
getFlatUpdateSelect ($store) | |
getIndexOptionText ($value) | |
addValueSortToCollection ($collection, $dir=\Magento\Framework\DB\Select::SQL_ASC) | |
![]() | |
setAttribute ($attribute) | |
getAttribute () | |
getOptionText ($value) | |
getOptionId ($value) | |
addValueSortToCollection ($collection, $dir=\Magento\Framework\Data\Collection::SORT_ORDER_DESC) | |
getFlatColumns () | |
getFlatIndexes () | |
getFlatUpdateSelect ($store) | |
getIndexOptionText ($value) | |
toOptionArray () | |
Data Fields | |
const | VALUE_YES = 1 |
const | VALUE_NO = 0 |
Protected Attributes | |
$_eavAttrEntity | |
![]() | |
$_attribute | |
$_options = null | |
__construct | ( | \Magento\Eav\Model\ResourceModel\Entity\AttributeFactory | $eavAttrEntity | ) |
\Magento\Eav\Model\ResourceModel\Entity\AttributeFactory | $eavAttrEntity | @codeCoverageIgnore |
Definition at line 30 of file Boolean.php.
addValueSortToCollection | ( | $collection, | |
$dir = \Magento\Framework\DB\Select::SQL_ASC |
|||
) |
Add Value Sort To Collection Select
\Magento\Eav\Model\Entity\Collection\AbstractCollection | $collection | |
string | $dir |
Definition at line 157 of file Boolean.php.
getAllOptions | ( | ) |
Retrieve all options array
Implements SourceInterface.
Definition at line 41 of file Boolean.php.
getFlatColumns | ( | ) |
Retrieve flat column definition
Definition at line 88 of file Boolean.php.
getFlatIndexes | ( | ) |
Retrieve Indexes(s) for Flat
Definition at line 110 of file Boolean.php.
getFlatUpdateSelect | ( | $store | ) |
Retrieve Select For Flat Attribute update
int | $store |
Definition at line 126 of file Boolean.php.
getIndexOptionText | ( | $value | ) |
Get a text for index option value
string | int | $value |
Definition at line 137 of file Boolean.php.
getOptionArray | ( | ) |
Retrieve option array
Definition at line 57 of file Boolean.php.
getOptionText | ( | $value | ) |
Get a text for option value
string | int | $value |
Implements SourceInterface.
Definition at line 72 of file Boolean.php.
|
protected |
Definition at line 24 of file Boolean.php.
const VALUE_NO = 0 |
Definition at line 19 of file Boolean.php.
const VALUE_YES = 1 |
Option values
Definition at line 17 of file Boolean.php.