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