Пример #1
0
 /**
  * Executes parent method parent::render(), creates oxvoucherserie object,
  * passes data to Smarty engine and returns name of template file
  * "voucherserie_list.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oVoucherSerie = oxNew("oxvoucherserie");
         $oVoucherSerie->load($soxId);
         $this->_aViewData["edit"] = $oVoucherSerie;
     }
     return $this->_sThisTemplate;
 }
Пример #2
0
 /**
  * Executes parent method parent::render(), creates oxvoucherserie object,
  * passes data to Smarty engine and returns name of template file
  * "voucherserie_list.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if (isset($soxId) && $soxId != "-1") {
         // load object
         $oVoucherSerie = oxNew("oxvoucherserie");
         $oVoucherSerie->load($soxId);
         $this->_aViewData["edit"] = $oVoucherSerie;
         //Disable editing for derived items
         if ($oVoucherSerie->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     return $this->_sThisTemplate;
 }
 /**
  * Creates shop object, passes shop data to Smarty engine and returns name of
  * template file
  *
  * @return string
  */
 public function render()
 {
     $this->createMainExportView();
     return parent::render();
 }