article_attribute.php

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

Generated on Thu Dec 4 12:04:55 2008 for OXID eShop CE by  doxygen 1.5.5