category_order.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Category_Order extends oxAdminDetails
00009 {
00016     public function render()
00017     {
00018         parent::render();
00019 
00020         $this->_aViewData['edit'] = $oCategory = oxNew( 'oxcategory' );
00021 
00022         // resetting
00023         oxSession::setVar( 'neworder_sess', null );
00024 
00025         $soxId = $this->getEditObjectId();
00026 
00027         if ( $soxId != "-1" && isset( $soxId)) {
00028             // load object
00029             $oCategory->load( $soxId );
00030 
00031             //Disable editing for derived items
00032             if ( $oCategory->isDerived() ) {
00033                 $this->_aViewData['readonly'] = true;
00034             }
00035         }
00036         if ( oxConfig::getParameter("aoc") ) {
00037             $oCategoryOrderAjax = oxNew( 'category_order_ajax' );
00038             $this->_aViewData['oxajax'] = $oCategoryOrderAjax->getColumns();
00039 
00040             return "popups/category_order.tpl";
00041         }
00042         return "category_order.tpl";
00043     }
00044 }