article_attribute.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class Article_Attribute extends oxAdminDetails
00010 {
00017     public function render()
00018     {
00019         parent::render();
00020 
00021         $this->_aViewData['edit'] = $oArticle = oxNew( 'oxarticle' );
00022 
00023         $soxId = oxConfig::getParameter( "oxid");
00024         if ( $soxId != "-1" && isset( $soxId)) {   // load object
00025             $oArticle->load( $soxId);
00026 
00027             if ( $oArticle->isDerived() ) {
00028                 $this->_aViewData["readonly"] = true;
00029             }
00030         }
00031 
00032         $aColumns = array();
00033         $iAoc = oxConfig::getParameter("aoc");
00034         if ( $iAoc == 1 ) {
00035 
00036             include_once 'inc/article_attribute.inc.php';
00037             $this->_aViewData['oxajax'] = $aColumns;
00038 
00039             return "popups/article_attribute.tpl";
00040         } elseif ( $iAoc == 2 ) {
00041 
00042             include_once 'inc/article_selection.inc.php';
00043             $this->_aViewData['oxajax'] = $aColumns;
00044 
00045             return "popups/article_selection.tpl";
00046         }
00047 
00048         return "article_attribute.tpl";
00049     }
00050 }

Generated on Wed Apr 22 12:26:29 2009 for OXID eShop CE by  doxygen 1.5.5