OXID eShop CE  4.8.10
 All Classes Files Functions Variables Pages
voucherserie_groups.php
Go to the documentation of this file.
1 <?php
2 
10 {
18  public function render()
19  {
21 
22  $soxId = $this->getEditObjectId();
23  if ( $soxId != "-1" && isset( $soxId)) {
24  // load object
25  $oVoucherSerie = oxNew( "oxvoucherserie" );
26  $oVoucherSerie->load( $soxId);
27  $oVoucherSerie->setUserGroups();
28  $this->_aViewData["edit"] = $oVoucherSerie;
29 
30  //Disable editing for derived items
31  if ($oVoucherSerie->isDerived())
32  $this->_aViewData['readonly'] = true;
33  }
34  if ( oxConfig::getParameter("aoc") ) {
35  $oVoucherSerieGroupsAjax = oxNew( 'voucherserie_groups_ajax' );
36  $this->_aViewData['oxajax'] = $oVoucherSerieGroupsAjax->getColumns();
37 
38  return "popups/voucherserie_groups.tpl";
39  }
40 
41  return "voucherserie_groups.tpl";
42  }
43 }