Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
setAttribute ($attribute) | |
getAttribute () | |
getOptionText ($value) | |
getOptionId ($value) | |
addValueSortToCollection ($collection, $dir=\Magento\Framework\Data\Collection::SORT_ORDER_DESC) | |
getFlatColumns () | |
getFlatIndexes () | |
getFlatUpdateSelect ($store) | |
getIndexOptionText ($value) | |
toOptionArray () | |
![]() | |
getAllOptions () | |
Protected Attributes | |
$_attribute | |
$_options = null | |
Entity/Attribute/Model - attribute selection source abstract
@api
Definition at line 16 of file AbstractSource.php.
addValueSortToCollection | ( | $collection, | |
$dir = \Magento\Framework\Data\Collection::SORT_ORDER_DESC |
|||
) |
Add Value Sort To Collection Select
\Magento\Eav\Model\Entity\Collection\AbstractCollection | $collection | |
string | $dir | direction |
Definition at line 105 of file AbstractSource.php.
getAttribute | ( | ) |
Get attribute instance
Definition at line 53 of file AbstractSource.php.
getFlatColumns | ( | ) |
Retrieve flat column definition
@codeCoverageIgnore
Definition at line 116 of file AbstractSource.php.
getFlatIndexes | ( | ) |
Retrieve Indexes(s) for Flat
Definition at line 127 of file AbstractSource.php.
getFlatUpdateSelect | ( | $store | ) |
Retrieve Select For Flat Attribute update
int | $store |
Definition at line 140 of file AbstractSource.php.
getIndexOptionText | ( | $value | ) |
Get a text for index option value
string | int | $value |
Definition at line 152 of file AbstractSource.php.
getOptionId | ( | $value | ) |
getOptionText | ( | $value | ) |
Get a text for option value
string | int | $value |
Implements SourceInterface.
Definition at line 64 of file AbstractSource.php.
setAttribute | ( | $attribute | ) |
Set attribute instance
\Magento\Eav\Model\Entity\Attribute\AbstractAttribute | $attribute |
Definition at line 41 of file AbstractSource.php.
toOptionArray | ( | ) |
Get options as array
Implements OptionSourceInterface.
Definition at line 163 of file AbstractSource.php.
|
protected |
Definition at line 25 of file AbstractSource.php.
|
protected |
Definition at line 32 of file AbstractSource.php.