Skip to content

Commit

Permalink
Merge pull request #91 from sreichel/1.9.2.4
Browse files Browse the repository at this point in the history
Added alias methods for getOptionArray(), see #65
  • Loading branch information
Flyingmana authored Oct 6, 2016
2 parents 84908af + 82e0278 commit 33852b9
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ static public function getOptionArray()
);
}

/**
* Retrieve option array
*
* @return array
*/
static public function toOptionArray()
{
return self::getOptionArray();
}

/**
* Retrieve option array with empty value
*
Expand Down
10 changes: 10 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,16 @@ static public function getOptionArray()
return $options;
}

/**
* Retrieve option array
*
* @return array
*/
static public function toOptionArray()
{
return self::getOptionArray();
}

static public function getAllOption()
{
$options = self::getOptionArray();
Expand Down
10 changes: 10 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Visibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ static public function getOptionArray()
}

/**
* Retrieve option array
*
* @return array
*/
static public function toOptionArray()
{
return self::getOptionArray();
}

/**
* Retrieve all options
*
* @return array
Expand Down
10 changes: 10 additions & 0 deletions app/code/core/Mage/Eav/Model/Entity/Attribute/Source/Boolean.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ public function getOptionArray()
return $_options;
}

/**
* Retrieve option array
*
* @return array
*/
public function toOptionArray()
{
return $this->getOptionArray();
}

/**
* Get a text for option value
*
Expand Down

0 comments on commit 33852b9

Please sign in to comment.