protected function _afterload() { if (!is_array($this->getValue())) { $this->setValue(explode(",", $this->getValue())); } return parent::_afterload(); }
protected function _afterload() { parent::_afterload(); $rule = Mage::getModel('hipay/rule'); $rule->setMethodCode($this->_getMethodCode()); if ($this->getValue()) { $rule->load($this->getValue()); } if ($rule->getConfigPath() == "") { $rule->setConfigPath($this->_getConfigPath()); } $this->setRule($rule); return $this; }