

Public Member Functions | |
| JSystem () | |
| Login ($login, $pass) | |
| AnonLogin () | |
| IsLogged () | |
| IsAnonymous () | |
| Logout () | |
| LoadModuleGroup ($group, $module, $idRMG) | |
| LoadModuleGlobalGroup ($module, $idRMG) | |
| LoadModule ($module, $idRMG=0) | |
| UnloadModule () | |
| & | InitModule ($name) |
| & | GetCurrentUser () |
| & | GetCurrentGroup () |
| IsGlobalGroup () | |
| & | GetCurrentModule () |
| GetConfig ($key) | |
| SetConfig ($keys, $user=true, $group=false) | |
| IsError ($error) | |
| GetLastError () | |
Definition at line 28 of file JSystem.class.php.
|
|
Initializes all the system. Definition at line 33 of file JSystem.class.php. References JSession::CleanAll(), and JContext::GetInstance(). |
|
|
Makes an anonymous login in the system
Definition at line 85 of file JSystem.class.php. References GetConfig(), JContext::GetInstance(), and JUgrSystem::GetInstance(). |
|
|
Gets the config value.
Definition at line 372 of file JSystem.class.php. References JConfig::GetInstance(). Referenced by Module::_GetInfoFilePath(), AnonLogin(), HtmlInterface::CheckSession(), ConfigIncBackend::ConfigIncBackend(), DBJames::DBJames(), HtmlInterface::GetCSSPath(), HtmlInterface::GetInterfaceModule(), HtmlInterface::GetLoginModule(), HtmlInterface::HtmlInterface(), and ModuleInstall::SetInfoFile(). |
|
|
Gets the current active group in the system.
Definition at line 329 of file JSystem.class.php. References JUgrSystem::GetInstance(), and JContext::GetInstance(). Referenced by JConfig::JConfig(). |
|
|
Gets the current active module in the system.
Definition at line 356 of file JSystem.class.php. References Modules::GetInstance(), and JContext::GetInstance(). Referenced by HtmlInterface::GetCurrentModulePath(), User::HasPermission(), and InitModule(). |
|
|
Gets the current user in the system.
Definition at line 317 of file JSystem.class.php. References JUgrSystem::GetInstance(), and JContext::GetInstance(). Referenced by JConfig::JConfig(). |
|
|
Static method that returns the last error that has happened in the system
Reimplemented from JBaseObject. Definition at line 414 of file JSystem.class.php. References JErrorHandler::GetInstance(). Referenced by JUgrSystem::AddGroup(), User::Create(), Role::Create(), Group::Create(), JUgrSystem::GetUser(), InitModule(), and Modules::InstallModule(). |
|
|
Initializes a module: checks if the module is loaded. If not, it tries to load it. It also returns a reference to the module.
Definition at line 283 of file JSystem.class.php. References CURRENT_GROUP, CURRENT_MODULE, CURRENT_USER, GetCurrentModule(), JUgrSystem::GetInstance(), JContext::GetInstance(), Modules::GetInstance(), GetLastError(), IsError(), IsLogged(), LoadModule(), and JBaseObject::RaiseError(). Referenced by HtmlInterface::HtmlInterface(). |
|
|
Checks if the current user is the anonymous one
Definition at line 132 of file JSystem.class.php. References JContext::GetInstance(). |
|
|
|
Returns whether the current group is the global group
Definition at line 346 of file JSystem.class.php. References JContext::GetInstance(). |
|
|
Checks if the session is active.
Definition at line 122 of file JSystem.class.php. References JContext::GetInstance(). Referenced by HtmlInterface::CheckSession(), and InitModule(). |
|
||||||||||||
|
Loads a module in the system.
Definition at line 248 of file JSystem.class.php. References JContext::GetInstance(), and ThrowEvent(). Referenced by InitModule(), LoadModuleGlobalGroup(), and LoadModuleGroup(). |
|
||||||||||||
|
Sets a module in the global group as the active one in the system.
Definition at line 206 of file JSystem.class.php. References $module, JUgrSystem::GetInstance(), JContext::GetInstance(), IsError(), and LoadModule(). |
|
||||||||||||||||
|
Sets a group and a module as the active ones in the system.
Definition at line 163 of file JSystem.class.php. References $module, JUgrSystem::GetInstance(), JContext::GetInstance(), IsError(), and LoadModule(). |
|
||||||||||||
|
Makes the login for a normal user. This function makes the login for a normal user.
Definition at line 48 of file JSystem.class.php. References JAuth::GetAuthSystem(), JContext::GetInstance(), and JUgrSystem::GetInstance(). |
|
|
Logs out the current user of the system Definition at line 141 of file JSystem.class.php. References JSession::CleanAll(), JContext::GetInstance(), and UnloadModule(). |
|
||||||||||||||||
|
Sets a config value.
Definition at line 393 of file JSystem.class.php. References JConfig::GetInstance(). |
|
|
Unloads the active module. Definition at line 264 of file JSystem.class.php. References JContext::GetInstance(), and ThrowEvent(). Referenced by Logout(). |
1.3.4