19 require_once(
"base_dir.php");
 
   21 require_once(BASE.
"wcmf/lib/util/class.Message.php");
 
   22 require_once(BASE.
"wcmf/lib/util/class.SessionData.php");
 
   23 require_once(BASE.
"wcmf/lib/output/class.LogOutputStrategy.php");
 
   24 require_once(BASE.
"wcmf/lib/presentation/class.WCMFInifileParser.php");
 
   25 require_once(BASE.
"wcmf/lib/persistence/class.PersistenceFacade.php");
 
   26 require_once(BASE.
"wcmf/lib/security/class.AuthUser.php");
 
   27 require_once(BASE.
"wcmf/lib/presentation/ListboxFunctions.php");
 
   28 require_once(BASE.
"wcmf/lib/util/class.JSONUtil.php");
 
   29 require_once(BASE.
"wcmf/lib/util/class.Log.php");
 
   43       Log::warn($errstr.
" in ".$errfile.
":".$errline, 
'Application');
 
   68     static $instance = null;
 
   70     if (!isset($instance)) {
 
   81     $this->_data = array_merge($_GET, $_POST, $_COOKIE, $_FILES);
 
   85       foreach ($json as $key => $value) {
 
   86         $this->_data[$key] = $value;
 
  106   function initialize($configPath=
'include/', $mainConfigFile=
'config.ini',
 
  107     $defaultController=
'LoginController', $defaultContext=
'', $defaultAction=
'login',
 
  116     $implementationFiles = array_values($parser->getSection(
"implementation"));
 
  117     foreach($implementationFiles as $implementationFile)
 
  119       $impl = BASE.$objectFactory->getClassfileFromConfig($implementationFile);
 
  121         require_once(BASE.$objectFactory->getClassfileFromConfig($implementationFile));
 
  128     if ($sessionId === 
false) { 
 
  131     if ($sessionId !== 
false) {
 
  137     $session->clearErrors();
 
  150     $authUser = &$rightsManager->getAuthUser();
 
  151     if ($authUser && strlen($authUser->getConfig()) > 0)
 
  153       if (!$parser->parseIniFile(
$GLOBALS[
'CONFIG_PATH'].$authUser->getConfig(), 
true))
 
  159     if ($parser->getValue(
'logDBActions', 
'cms') == 1)
 
  162       $persistenceFacade->setReadOnly(
true);
 
  165     $GLOBALS[
'controller'] = $controller;
 
  168     $GLOBALS[
'requestFormat'] = $requestFormat;
 
  169     $GLOBALS[
'responseFormat'] = $responseFormat;
 
  172     return array(
'action' => $action, 
'context' => $context, 
'controller' => $controller,
 
  173       'data' => &$this->_data, 
'requestFormat' => $requestFormat, 
'responseFormat' => $responseFormat);
 
  185     if (array_key_exists($name, $application->_data))
 
  186       $value = $application->_data[$name];
 
  195   function setupGlobals($configPath=
'include/', $mainConfigFile=
'config.ini')
 
  198     $GLOBALS[
'CONFIG_PATH'] = $configPath;
 
  199     $GLOBALS[
'CONFIG_EXTENSION'] = 
"ini";
 
  200     $GLOBALS[
'MAIN_CONFIG_FILE'] = $mainConfigFile;
 
  204     if (!$parser->parseIniFile(
$GLOBALS[
'CONFIG_PATH'].$GLOBALS[
'MAIN_CONFIG_FILE'], 
true))
 
  208     $GLOBALS[
'MESSAGE_LOCALE_DIR'] = $parser->getValue(
'localeDir', 
'cms');
 
  209     $GLOBALS[
'MESSAGE_LANGUAGE'] = $parser->getValue(
'language', 
'cms');
 
  212     if (
$GLOBALS[
'MESSAGE_LANGUAGE'] !== 
false)
 
  213       setlocale(LC_ALL, 
$GLOBALS[
'MESSAGE_LANGUAGE']);
 
  216     set_error_handler(
"globalErrorHandler", error_reporting());
 
  224     return md5($_SERVER[
'SERVER_ADDR'].__FILE__);
 
warn($message, $category)
setupGlobals($configPath='include/', $mainConfigFile='config.ini')
throwEx($message, $file='', $line='')
static decode($value, $assoc=false)
This OutputStrategy outputs an object's content to the logger category LogOutputStrategy, loglevel info Used classes must implement the toString() method. 
initialize($configPath='include/', $mainConfigFile='config.ini', $defaultController='LoginController', $defaultContext='', $defaultAction='login', $defaultResponseFormat=MSG_FORMAT_HTML)
The main application class. Does all the initialization. 
globalErrorHandler($errno, $errstr, $errfile, $errline)
getCallParameter($name, $default)