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 = oxConfig::getParameter( "oxid" );
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 
00038             $aColumns = array();
00039             include_once 'inc/'.strtolower(__CLASS__).'.inc.php';
00040             $this->_aViewData['oxajax'] = $aColumns;
00041 
00042             return "popups/category_order.tpl";
00043         }
00044         return "category_order.tpl";
00045     }
00046 }

Generated by  doxygen 1.6.2