public static function addModules ($modules=array(), $load=false){
		if( static::$_modulesRegistered ){
			throw new Exception('Skin is attempting to add modules after modules have already been registered.');
		}
		if(empty($modules)){
			return;
		}
		static::$modules += (array) $modules;
		if($load){
			static::$autoloadModules += array_keys($modules);
		}
	}
public static function addModules ($modules=array(), $load=false){
		if( static::$_modulesRegistered ){
			throw new Exception('Skin is attempting to add modules after modules have already been registered.');
		}
		if(empty($modules)){
			return;
		}
		static::$modules += (array) $modules;
		if($load){
			static::$autoloadModules += array_keys($modules);
		}
	}
public static function addModules ( $ modules = array ( ) , $ load = false ) { if ( static :: $ _modulesRegistered ) { throw new Exception ( 'Skin is attempting to add modules after modules have already been registered.' ) ; } if ( empty ( $ modules ) ) { return ; } static :: $ modules += ( array ) $ modules ; if ( $ load ) { static :: $ autoloadModules += array_keys ( $ modules ) ; } }
Build a list of modules to be registered to the ResourceLoader when it initializes.
Build a list of modules to be registered to the ResourceLoader when it initializes .