Example #1
0
 /**
  * Run shutdown routine
  *
  * Recommended to call this when you don't want the Moodlerooms
  * Framework to conflict with other code, EG: when using the
  * framework on the cron.
  *
  * @return void
  */
 public static function shutdown()
 {
     if (self::$init) {
         // Stop autoloading all mr_* classes
         mr_autoload::unregister();
         // Reset!
         self::$init = false;
     }
 }