public function _construct() { parent::_construct(); if (!$this->getOptions()) { foreach ($this->_getRuleList() as $ruleId => $ruleLabel) { $this->addOption($ruleId, addslashes($ruleLabel)); } } }
/** * Add options to this select box. */ protected function _construct() { parent::_construct(); $this->setOptions(Mage::getModel('mageparts_base/system_config_source_urltable_type')->toOptionArray()); }
/** * Add options to this select box. */ protected function _construct() { parent::_construct(); $this->setOptions(Mage::getModel('ddq/system_config_source_columntype')->toOptionArray()); }
protected function _construct() { parent::_construct(); $this->_helper = Mage::helper('allbear_cghomepage'); }