OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxerptype_category.php
Go to the documentation of this file.
1 <?php
2 
3 require_once 'oxerptype.php';
4 
9 {
10 
16  public function __construct()
17  {
19 
20  $this->_sTableName = 'oxcategories';
21  $this->_sShopObjectName = 'oxcategory';
22  }
23 
33  protected function _preAssignObject($oShopObject, $aData, $blAllowCustomShopId)
34  {
35  $aData = parent::_preAssignObject($oShopObject, $aData, $blAllowCustomShopId);
36 
37  if (!$aData['OXPARENTID']) {
38  $aData['OXPARENTID'] = 'oxrootid';
39  }
40 
41  return $aData;
42  }
43 }