Public Member Functions | |
toOptionArray () |
Definition at line 35 of file ListPerPage.php.
toOptionArray | ( | ) |
Definition at line 38 of file ListPerPage.php.
00039 { 00040 $result = array(); 00041 $perPageValues = Mage::getConfig()->getNode('frontend/catalog/per_page_values/list'); 00042 $perPageValues = explode(',', $perPageValues); 00043 foreach ($perPageValues as $option) { 00044 $result[] = array('value' => $option, 'label' => $option); 00045 } 00046 //$result[] = array('value' => 'all', 'label' => Mage::helper('catalog')->__('All')); 00047 return $result; 00048 }