Mage_Adminhtml_Model_System_Config_Source_Catalog_ListSort Class Reference

List of all members.

Public Member Functions

 toOptionArray ()

Protected Member Functions

 _getCatalogConfig ()


Detailed Description

Definition at line 35 of file ListSort.php.


Member Function Documentation

_getCatalogConfig (  )  [protected]

Retrieve Catalog Config Singleton

Returns:
Mage_Catalog_Model_Config

Definition at line 63 of file ListSort.php.

00063                                            {
00064         return Mage::getSingleton('catalog/config');
00065     }

toOptionArray (  ) 

Retrieve option values array

Returns:
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     }


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:23:14 2009 for Magento by  doxygen 1.5.8