Mage_Eav_Model_Entity_Attribute_Source_Abstract
in package
implements
Mage_Eav_Model_Entity_Attribute_Source_Interface
AbstractYes
Table of Contents
Interfaces
- Mage_Eav_Model_Entity_Attribute_Source_Interface
- Entity attribute select source interface Source is providing the selection options for user interface
Properties
- $_attribute : Mage_Eav_Model_Entity_Attribute_Abstract
- Reference to the attribute instance
- $_options : array<string|int, mixed>|null
- Options array
Methods
- addValueSortToCollection() : $this
- Add Value Sort To Collection Select
- getAttribute() : Mage_Eav_Model_Entity_Attribute_Abstract
- Get attribute instance
- getIndexOptionText() : string|bool
- Get a text for index option value
- getOptionId() : string|null
- getOptionText() : string|bool
- Get a text for option value
- setAttribute() : $this
- Set attribute instance
Properties
$_attribute
Reference to the attribute instance
protected
Mage_Eav_Model_Entity_Attribute_Abstract
$_attribute
$_options
Options array
protected
array<string|int, mixed>|null
$_options
= \null
Methods
addValueSortToCollection()
Add Value Sort To Collection Select
public
addValueSortToCollection(Mage_Eav_Model_Entity_Collection_Abstract $collection[, string $dir = Collection::SORT_ORDER_DESC ]) : $this
Parameters
- $collection : Mage_Eav_Model_Entity_Collection_Abstract
- $dir : string = Collection::SORT_ORDER_DESC
-
direction
Return values
$thisgetAttribute()
Get attribute instance
public
getAttribute() : Mage_Eav_Model_Entity_Attribute_Abstract
Return values
Mage_Eav_Model_Entity_Attribute_AbstractgetIndexOptionText()
Get a text for index option value
public
getIndexOptionText(string|int $value) : string|bool
Parameters
- $value : string|int
Return values
string|boolgetOptionId()
public
getOptionId(string $value) : string|null
Parameters
- $value : string
Return values
string|nullgetOptionText()
Get a text for option value
public
getOptionText(string|int $value) : string|bool
Parameters
- $value : string|int
Attributes
- #[Override]
Return values
string|boolsetAttribute()
Set attribute instance
public
setAttribute(Mage_Eav_Model_Entity_Attribute_Abstract $attribute) : $this
Parameters
- $attribute : Mage_Eav_Model_Entity_Attribute_Abstract