oxerptype_category.php

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