src/Mouf/MoufManager.php
public static function switchToHidden() {
		self::$hiddenInstance = self::$defaultInstance;
		self::$defaultInstance = new MoufManager();
		self::$defaultInstance->configManager = new MoufConfigManager("../../config.php");
		self::$defaultInstance->componentsFileName = "../../mouf/MoufComponents.php";
		//self::$defaultInstance->requireFileName = "MoufAdminRequire.php";
		self::$defaultInstance->adminUiFileName = "../../mouf/MoufUI.php";
		self::$defaultInstance->mainClassName = "MoufAdmin";
		self::$defaultInstance->scope = MoufManager::SCOPE_ADMIN;
	}
public static function switchToHidden() {
		self::$hiddenInstance = self::$defaultInstance;
		self::$defaultInstance = new MoufManager();
		self::$defaultInstance->configManager = new MoufConfigManager("../../config.php");
		self::$defaultInstance->componentsFileName = "../../mouf/MoufComponents.php";
		//self::$defaultInstance->requireFileName = "MoufAdminRequire.php";
		self::$defaultInstance->adminUiFileName = "../../mouf/MoufUI.php";
		self::$defaultInstance->mainClassName = "MoufAdmin";
		self::$defaultInstance->scope = MoufManager::SCOPE_ADMIN;
	}
public static function switchToHidden ( ) { self :: $ hiddenInstance = self :: $ defaultInstance ; self :: $ defaultInstance = new MoufManager ( ) ; self :: $ defaultInstance -> configManager = new MoufConfigManager ( "../../config.php" ) ; self :: $ defaultInstance -> componentsFileName = "../../mouf/MoufComponents.php" ; //self::$defaultInstance->requireFileName = "MoufAdminRequire.php";
 self :: $ defaultInstance -> adminUiFileName = "../../mouf/MoufUI.php" ; self :: $ defaultInstance -> mainClassName = "MoufAdmin" ; self :: $ defaultInstance -> scope = MoufManager :: SCOPE_ADMIN ; }
This function takes the whole configuration stored in the default instance of the Mouf framework
and switches it in the hidden instance.
The default instance is cleaned afterwards.
This function takes the whole configuration stored in the default instance of the Mouf framework and switches it in the hidden instance . The default instance is cleaned afterwards .