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