Documentation

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

$_options

Options array

protected array<string|int, mixed>|null $_options = \null

Methods

getIndexOptionText()

Get a text for index option value

public getIndexOptionText(string|int $value) : string|bool
Parameters
$value : string|int
Return values
string|bool

getOptionId()

public getOptionId(string $value) : string|null
Parameters
$value : string
Return values
string|null

getOptionText()

Get a text for option value

public getOptionText(string|int $value) : string|bool
Parameters
$value : string|int
Attributes
#[Override]
Return values
string|bool
On this page

Search results