/** * * 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; } }
/** * * get slider object */ public static function getSlider($sliderID) { $operations = new HelperUniteOperationsRev(); $slider = $operations->getSlider($sliderID); return $slider; }