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 = $this->getEditObjectId();
00024         if ( $soxId != "-1" && isset( $soxId)) {
00025             // load object
00026             $oArticle->load( $soxId);
00027 
00028             if ( $oArticle->isDerived() ) {
00029                 $this->_aViewData["readonly"] = true;
00030             }
00031         }
00032 
00033         $iAoc = oxConfig::getParameter("aoc");
00034         if ( $iAoc == 1 ) {
00035             $oArticleAttributeAjax = oxNew( 'article_attribute_ajax' );
00036             $this->_aViewData['oxajax'] = $oArticleAttributeAjax->getColumns();
00037 
00038             return "popups/article_attribute.tpl";
00039         } elseif ( $iAoc == 2 ) {            
00040             $oArticleSelectionAjax = oxNew( 'article_selection_ajax' );
00041             $this->_aViewData['oxajax'] = $oArticleSelectionAjax->getColumns();
00042 
00043             return "popups/article_selection.tpl";
00044         }
00045 
00046         return "article_attribute.tpl";
00047     }
00048 }