OXID eShop CE  4.9.10
 All Classes Files Functions Variables Pages
article_attribute.php
Go to the documentation of this file.
1 <?php
2 
10 {
11 
18  public function render()
19  {
21 
22  $this->_aViewData['edit'] = $oArticle = oxNew('oxarticle');
23 
24  $soxId = $this->getEditObjectId();
25  if ($soxId != "-1" && isset($soxId)) {
26  // load object
27  $oArticle->load($soxId);
28 
29  if ($oArticle->isDerived()) {
30  $this->_aViewData["readonly"] = true;
31  }
32  }
33 
34  $iAoc = oxRegistry::getConfig()->getRequestParameter("aoc");
35  if ($iAoc == 1) {
36  $oArticleAttributeAjax = oxNew('article_attribute_ajax');
37  $this->_aViewData['oxajax'] = $oArticleAttributeAjax->getColumns();
38 
39  return "popups/article_attribute.tpl";
40  } elseif ($iAoc == 2) {
41  $oArticleSelectionAjax = oxNew('article_selection_ajax');
42  $this->_aViewData['oxajax'] = $oArticleSelectionAjax->getColumns();
43 
44  return "popups/article_selection.tpl";
45  }
46 
47  return "article_attribute.tpl";
48  }
49 }