Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getVisibleStatusIds () | |
getSaleableStatusIds () | |
getAllOptions () | |
getOptionText ($optionId) | |
addValueSortToCollection ($collection, $dir='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 () | |
Static Public Member Functions | |
static | getOptionArray () |
Data Fields | |
const | STATUS_ENABLED = 1 |
const | STATUS_DISABLED = 2 |
Additional Inherited Members | |
![]() | |
$_attribute | |
$_options = null | |
addValueSortToCollection | ( | $collection, | |
$dir = 'asc' |
|||
) |
Add Value Sort To Collection Select
\Magento\Eav\Model\Entity\Collection\AbstractCollection | $collection | |
string | $dir | direction |
Definition at line 96 of file Status.php.
getAllOptions | ( | ) |
Retrieve option array with empty value
Implements SourceInterface.
Definition at line 65 of file Status.php.
|
static |
getOptionText | ( | $optionId | ) |
Retrieve option text by option value
string | $optionId |
Implements SourceInterface.
Definition at line 82 of file Status.php.
getSaleableStatusIds | ( | ) |
Retrieve Saleable Status Ids Default Product Enable status
Definition at line 45 of file Status.php.
getVisibleStatusIds | ( | ) |
#- Retrieve Visible Status Ids
Definition at line 34 of file Status.php.
const STATUS_DISABLED = 2 |
Definition at line 25 of file Status.php.
const STATUS_ENABLED = 1 |
Definition at line 23 of file Status.php.