* @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_Title extends Mage_Core_Model_Config_Data { const CURRENT_CATEGORY_VALUE = 'current'; const PARENT_CATEGORY_VALUE = 'parent'; const STATIC_TITLE_VALUE = 'static'; /** * Fills the select field with values * * @return array */ public function toOptionArray() { return array( array( 'value' => self::CURRENT_CATEGORY_VALUE, 'label' => Mage::helper('sidenav')->__('Current Category Name') ), array( 'value' => self::PARENT_CATEGORY_VALUE, 'label' => Mage::helper('sidenav')->__('Parent Category Name') ), array( 'value' => self::STATIC_TITLE_VALUE, 'label' => Mage::helper('sidenav')->__('Static Title') ) ); } }