Public Member Functions | |
toOptionArray () | |
Protected Member Functions | |
_getCatalogConfig () |
Definition at line 35 of file ListSort.php.
_getCatalogConfig | ( | ) | [protected] |
Retrieve Catalog Config Singleton
Definition at line 63 of file ListSort.php.
00063 { 00064 return Mage::getSingleton('catalog/config'); 00065 }
toOptionArray | ( | ) |
Retrieve option values array
Definition at line 42 of file ListSort.php.
00043 { 00044 $options = array(); 00045 $options[] = array( 00046 'label' => Mage::helper('catalog')->__('Best Value'), 00047 'value' => 'position' 00048 ); 00049 foreach ($this->_getCatalogConfig()->getAttributesUsedForSortBy() as $attribute) { 00050 $options[] = array( 00051 'label' => Mage::helper('catalog')->__($attribute['frontend_label']), 00052 'value' => $attribute['attribute_code'] 00053 ); 00054 } 00055 return $options; 00056 }