Go to the documentation of this file.00001 <?php
00002
00003 require_once 'oxerptype.php';
00004
00008 class oxERPType_Category extends oxERPType
00009 {
00010
00016 public function __construct()
00017 {
00018 parent::__construct();
00019
00020 $this->_sTableName = 'oxcategories';
00021 $this->_sShopObjectName = 'oxcategory';
00022 }
00023
00033 protected function _preAssignObject($oShopObject, $aData, $blAllowCustomShopId)
00034 {
00035 $aData = parent::_preAssignObject($oShopObject, $aData, $blAllowCustomShopId);
00036
00037 if (!$aData['OXPARENTID']) {
00038 $aData['OXPARENTID'] = 'oxrootid';
00039 }
00040
00041 return $aData;
00042 }
00043 }