OXID eShop CE  4.9.9
 All Classes Files Functions Variables Pages
category_order.php
Go to the documentation of this file.
1 <?php
2 
9 {
10 
17  public function render()
18  {
20 
21  $this->_aViewData['edit'] = $oCategory = oxNew('oxcategory');
22 
23  // resetting
24  oxRegistry::getSession()->setVariable('neworder_sess', null);
25 
26  $soxId = $this->getEditObjectId();
27 
28  if ($soxId != "-1" && isset($soxId)) {
29  // load object
30  $oCategory->load($soxId);
31 
32  //Disable editing for derived items
33  if ($oCategory->isDerived()) {
34  $this->_aViewData['readonly'] = true;
35  }
36  }
37  if (oxRegistry::getConfig()->getRequestParameter("aoc")) {
38  $oCategoryOrderAjax = oxNew('category_order_ajax');
39  $this->_aViewData['oxajax'] = $oCategoryOrderAjax->getColumns();
40 
41  return "popups/category_order.tpl";
42  }
43 
44  return "category_order.tpl";
45  }
46 }