Public Member Functions | |
Modules () | |
& | GetInstance () |
_UpdateSession () | |
_RefreshModules () | |
& | GetAllModules () |
& | GetModule ($id, $refresh=false) |
& | _AccessModule ($id, $refresh=false) |
& | InstallModule ($path) |
Public Attributes | |
$modulesid | |
$modulesnames | |
Connects names with ids. |
It is for modules like JUgrSystem is for Users, Groups and Roles.
Definition at line 20 of file Modules.class.php.
|
Constructs an object of this class. This constructor should not be used directly. To get an instance of this class use the static method GetInstance, instead. Definition at line 32 of file Modules.class.php. Referenced by GetInstance(). |
|
Gets the Module object of a group given its id or its name. It just takes it from the information in the session.
Definition at line 145 of file Modules.class.php. References $module, and JBaseObject::RaiseError(). |
|
Refreshes the information about the modules in the system Definition at line 78 of file Modules.class.php. References $module, and Module::GetAllModulesId(). |
|
Stores the object in session. Definition at line 70 of file Modules.class.php. References JSession::SetVar(). Referenced by GetInstance(). |
|
Gets all modules in the system.
Definition at line 102 of file Modules.class.php. |
|
Static method that returns the Modules object stored in session.
Definition at line 41 of file Modules.class.php. References _UpdateSession(), JSession::ExistsVar(), JSession::GetVar(), and Modules(). Referenced by Group::AddModule(), Role::AddPermission(), ConfigIncBackend::ConfigIncBackend(), JSystem::GetCurrentModule(), User::GetModules(), Group::GetModules(), HtmlInterface::HtmlInterface(), JSystem::InitModule(), HtmlCoreForms::PrintComboModules(), Role::RemovePermission(), Group::SetModuleName(), and ThrowEvent(). |
|
Gets the Module object of a group given its id or its name. It just takes it from the information in the session.
Definition at line 115 of file Modules.class.php. References $module, JSystem::IsError(), and JBaseObject::RaiseError(). |
|
Installs a new module in the system.
Definition at line 180 of file Modules.class.php. References $module, JSystem::GetLastError(), and JSystem::IsError(). |
|
An array that connects the id of the modules and its name. Definition at line 22 of file Modules.class.php. |
|
Connects names with ids.
Definition at line 24 of file Modules.class.php. |