コード例 #1
0
ファイル: restore_ui.class.php プロジェクト: evltuma/moodle
 /**
  * Loads the restore controller if we are tracking one
  * @param string|bool $restoreid
  * @return string
  */
 public static final function load_controller($restoreid = false)
 {
     // Get the restore id optional param.
     if ($restoreid) {
         try {
             // Try to load the controller with it.
             // If it fails at this point it is likely because this is the first load.
             $controller = restore_controller::load_controller($restoreid);
             return $controller;
         } catch (Exception $e) {
             return false;
         }
     }
     return $restoreid;
 }