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)) {
00025             // 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 by  doxygen 1.6.2