Exemplo n.º 1
0
 /**
  * 
  * check export / import actions
  */
 private function checkExportImport()
 {
     //set message on start
     $message = UniteFunctionsRev::getGetVar("m");
     if ($message == "is") {
         //import success message
         $this->messageOnStart = "Import slider parameters and slides success!!!";
     }
     $clientAction = UniteFunctionsRev::getPostGetVariable("client_action");
     $helper = new HelperUniteOperationsRev();
     switch ($clientAction) {
         case "export_slider":
             $helper->exportSlider($this->sliderID);
             break;
         case "import_slider":
             $helper->importSlider($this->sliderID);
             //redirect
             $urlSlider = HelperUniteRev::getViewUrl_Slider($this->sliderID);
             $urlSlider .= "&m=is";
             UniteFunctionsRev::redirectToUrl($urlSlider);
             break;
     }
 }