* @since Version 1.0 */ class sysUpdater { public $DIR; public $controller; /** * Class constructor */ public function __construct() { $this->DIR = __DIR__ ? __DIR__ : dirname(__FILE__); $this->controller = new sysUpdaterController(); } /** * Default function to run * Skip if other callback defined */ public function run(){ } /** * All request actions go here */ public function runUpdateRequestAction() { $action = getV('req-type'); if($action){ switch ($action){ // Init project export case sysUpdaterController::EXPORT_SETUP: $this->controller->initProjectUpdate(getV('export_id'), getV('version_file'), getG('request_url'), getV('token')); break; default: $this->controller->run(); break; } }else{ $this->controller->run(); } } }