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