コード例 #1
0
ファイル: Page.php プロジェクト: njaeger/magento_github
 protected function _beforeSave()
 {
     if ($pageType = $this->getData('page_type')) {
         $this->setData('additional_data', serialize(array('page_type' => $pageType)));
     }
     parent::_beforeSave();
 }
コード例 #2
0
ファイル: Product.php プロジェクト: njaeger/magento_github
 protected function _beforeSave()
 {
     if (!($attributes = $this->getData('attributes'))) {
         $attributes = array();
     }
     $this->setData('additional_data', serialize(array('attributes' => $attributes)));
     parent::_beforeSave();
 }