Class MachII_framework_AppLoader

Description

Responsible for controlling loading/reloading of the AppManager.

Located in /MachII/framework/AppLoader.php (line 11)


	
			
Variable Summary
Method Summary
MachII_framework_AppLoader MachII_framework_AppLoader ()
string getConfigPath ()
integer getLastReloadDate ()
void init (string $configPath)
void reloadConfig ()
void setConfigPath (string $configPath)
void setLastReloadDate (integer $lastReloadDate)
boolean shouldReloadConfig ()
Variables
MachII_framework_AppFactory $_appFactory (line 30)

Application factory

  • access: private
MachII_framework_AppManager $_appManager (line 24)

Application manager

  • access: private
string $_configPath (line 18)

Path and filname of the XML configuration file

  • access: private
integer $_lastReloadDate = 0 (line 38)

Date the configuration file was last reloaded.

Unix timestamp

  • var: Unix timestamp
  • access: private
Methods
Constructor MachII_framework_AppLoader (line 44)

Setup the application factory

MachII_framework_AppLoader MachII_framework_AppLoader ()
getAppFactory (line 159)
MachII_framework_AppFactory &getAppFactory ()
getAppManager (line 143)
MachII_framework_AppManager &getAppManager ()
getConfigPath (line 127)
  • return: path and filename of the configuration file
string getConfigPath ()
getLastReloadDate (line 110)
  • return: Unix timestamp
integer getLastReloadDate ()
init (line 56)

Configure the application

  • internal: Split out of the constructor so it could throw an error
void init (string $configPath)
  • string $configPath: path and filename of the configuration file
reloadConfig (line 86)

Create a new application manager

Creates a new application manager from the configuration and updates the last reload date to the current date/time.

void reloadConfig ()
setAppFactory (line 151)
void setAppFactory (MachII_framework_AppFactory &$appFactory)
setAppManager (line 135)
void setAppManager (MachII_framework_AppManager &$appManager)
setConfigPath (line 119)

Set the path and filename of the configuration file

void setConfigPath (string $configPath)
  • string $configPath: absolute path and filename of the configuration file
setLastReloadDate (line 102)
void setLastReloadDate (integer $lastReloadDate)
  • integer $lastReloadDate: Unix timestamp
shouldReloadConfig (line 73)

Determine if the configuration file should be reloaded

Checks if the configuration file has been modified since it was last loaded.

boolean shouldReloadConfig ()

Documentation generated on Thu, 20 Jan 2005 10:46:51 -0800 by phpDocumentor 1.3.0RC3