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