* @copyright Copyright (c) 2011 CODNITIVE Co. (http://www.codnitive.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ class Codnitive_Sidenav_Model_System_Config_Source_Icon extends Mage_Core_Model_Config_Data { protected $_position = array( 'arrow' => 'Arrow', 'plus' => 'Plus' ); /** * Fills the select field with values * * @return array */ public function toOptionArray() { $options = array(); foreach ($this->_position as $key => $val) { $options[] = array( 'value' => $key, 'label' => Mage::helper('sidenav')->__($val) ); } return $options; } }