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