public function load($id, $field = null) { parent::load($id, $field); if ($this->getStoreId()) { $this->loadStoreValue(); } return $this; }
/** * load data for model * * @param mixed $id * @param string $field * @return Magestore_Affiliateplusprogram_Model_Program */ public function load($id, $field = null) { parent::load($id, $field); if ($this->getStoreId()) { $this->loadStoreValue(); } if (is_string($this->getData('tier_commission'))) { $this->setData('tier_commission', unserialize($this->getData('tier_commission'))); } if (is_string($this->getData('sec_tier_commission'))) { $this->setData('sec_tier_commission', unserialize($this->getData('sec_tier_commission'))); } return $this; }