|
wCMF
3.6
|
Public Member Functions | |
| & | getInstance () |
| Application () | |
| initialize ($configPath='include/', $mainConfigFile='config.ini', $defaultController='LoginController', $defaultContext='', $defaultAction='login', $defaultResponseFormat=MSG_FORMAT_HTML) | |
| getCallParameter ($name, $default) | |
| setupGlobals ($configPath='include/', $mainConfigFile='config.ini') | |
| getId () | |
Public Attributes | |
| $_data = null | |
The main application class. Does all the initialization.
Definition at line 58 of file class.Application.php.
| & Application::getInstance | ( | ) |
Returns an instance of the class.
Definition at line 66 of file class.Application.php.
References Application().
Referenced by getCallParameter().
Here is the call graph for this function:| Application::Application | ( | ) |
Constructor
Definition at line 78 of file class.Application.php.
References $_data, $GLOBALS, and JSONUtil\decode().
Referenced by getInstance().
Here is the call graph for this function:| Application::initialize | ( | $configPath = 'include/', |
|
$mainConfigFile = 'config.ini', |
|||
$defaultController = 'LoginController', |
|||
$defaultContext = '', |
|||
$defaultAction = 'login', |
|||
$defaultResponseFormat = MSG_FORMAT_HTML |
|||
| ) |
Initialize the application.
| configPath | The path where config files reside (as seen from main.php), optional [default: 'include/'] |
| mainConfigFile | The main configuration file to use, optional [default: 'config.ini'] |
| defaultController | The controller to call if none is given in request parameters, optional [default: 'LoginController'] |
| defaultContext | The context to set if none is given in request parameters, optional [default: ''] |
| defaultAction | The action to perform if none is given in request parameters, optional [default: 'login'] |
| defaultResponseFormat | The response format if none is given in request parameters, optional [default: MSG_FORMAT_HTML] |
Definition at line 106 of file class.Application.php.
References $GLOBALS, getCallParameter(), WCMFInifileParser\getInstance(), ObjectFactory\getInstance(), PersistenceFacade\getInstance(), RightsManager\getInstance(), SessionData\getInstance(), SessionData\init(), setupGlobals(), and WCMFException\throwEx().
Here is the call graph for this function:| Application::getCallParameter | ( | $name, | |
| $default | |||
| ) |
Get a value from the call parameters (GET, POST variables)
| name | The name of the parameter |
| default | The value to return, if no value is given |
Definition at line 181 of file class.Application.php.
References getInstance().
Referenced by initialize().
Here is the call graph for this function:| Application::setupGlobals | ( | $configPath = 'include/', |
|
$mainConfigFile = 'config.ini' |
|||
| ) |
Setup global variables. Does nothing related to session, users and persistence. Use this method if you just want to have all global variables initialized and need access to config values.
| configPath | The path where config files reside (as seen from main.php), maybe null [default: include/] |
| mainConfigFile | The main configuration file to use, maybe null [default: config.ini] |
Definition at line 195 of file class.Application.php.
References $GLOBALS, WCMFInifileParser\getInstance(), and WCMFException\throwEx().
Referenced by initialize().
Here is the call graph for this function:| Application::getId | ( | ) |
Get an unique id for the application based on the installation location.
Definition at line 222 of file class.Application.php.
Referenced by SessionData\getClassDefinitionFile().
| Application::$_data = null |
Definition at line 60 of file class.Application.php.
Referenced by Application().