Initializes the framework
This class is used inside the initialization script, and has the responsability of starting up all basic services of the framework: configuration, internationalization and session.
Located in /core/Init.class.php (line 57)
Charset code
Locale code
Date format settings table
Refernce to the singleton of the LanguageBase class
Available set of locales
Reference to the singleton of the LocaleNegotiator class
Get the singleton of the class
This method is called inside p2gConfig.php, and launches the framework's initialization.
Reset the language settings
Check if there's a language code (choosen by the user) stored in the cookies or in the session scope. If it exists, it is removed and all language/locale configurations are reinitialized based on the default language settings.
This method could be useful to remove a language choice right after the user logs off the application.
Change the active locale
Apply a given language code
Check if the ABSOLUTE_URI configuration setting is present and represents a valid absolute or relative URL
Check if the running PHP version satisfies the minimum requirement of the framework
Initialize the configuration settings
Initializes date format settings
Initialize locale and language settings
Steps of language code detection:
Initializes the session
Configure all session properties based on the global settings: session name, session lifetime, session save path, ... Start PHP session if SESSION.AUTO_START is missing or set to true. Define a set of ini entries for sessions.
Documentation generated on Sun, 07 Oct 2007 19:26:43 -0300 by phpDocumentor 1.3.2