Public Member Functions | |
ModuleInstall ($path) | |
SetSourcePath ($path) | |
SetInfoFile ($name=DEFAULT_INFO_FILENAME) | |
& | GetModuleInfo () |
Install () | |
FilesInstall () | |
ModulesInfoInstall () | |
TablesInstall () | |
PermissionsInstall () | |
_PermissionsInsert ($name) | |
ConfigInstall () | |
_ConfigInsert ($configKey) | |
_ConfigSetDefault ($configKey) | |
RaiseError ($error, $extra="") | |
Public Attributes | |
$modulesourcepath | |
The path where is the source of the module. | |
$infofile | |
The config.xml path. | |
$destpath | |
The path where the module will be installed. | |
$modinfo | |
ModuleInfo. | |
$moduleid | |
The id of the module when it is added to the system. | |
$dbObj | |
The DB Object. | |
$validModule | |
Indicates if it is a valid module or not. |
It does not show any graphic interface (a module should be designed to do that thing). It is just about the installation logic.
Definition at line 39 of file ModuleInstall.class.php.
|
The constructor Definition at line 57 of file ModuleInstall.class.php. |
|
Makes the concrete query in order to insert the config key in the DB
Definition at line 315 of file ModuleInstall.class.php. References MODULEINSTALL_ERROR_INSERT_CONFIG. |
|
Sets the default value for the key if the module creator specified any.
Definition at line 340 of file ModuleInstall.class.php. References ConfigCache::GetInstance(). |
|
Does the concrete query in order to adding permissions in the DB. It is given a name and a screenname instead of an IModuleInfoExtractors due to the hidden permission which is added "automagically".
Definition at line 260 of file ModuleInstall.class.php. References MODULEINSTALL_ERROR_INSERT_PERMISSIONS. |
|
Inserts the module's config keys into de DB
Definition at line 283 of file ModuleInstall.class.php. References JSystem::IsError(). |
|
Copies the module files in the destination directory (jamesDir/modules)
Definition at line 159 of file ModuleInstall.class.php. References FileOps::cp(), MODULEINSTALL_ERROR_ALREADY_INSTALLED, and MODULEINSTALL_ERROR_DEST_PATH_NO_WRITABLE. |
|
Gets an IModuleInfoExtractor with the information of the module
Definition at line 113 of file ModuleInstall.class.php. |
|
Installs the module in the system
Definition at line 122 of file ModuleInstall.class.php. References JSystem::IsError(), MODULEINSTALL_ERROR_NO_MODULE_DEFINED, and ThrowEvent(). |
|
Inserts the module information into the Modules table in the DB
Definition at line 179 of file ModuleInstall.class.php. References MODULEINSTALL_ERROR_INSERT_MODULES. |
|
Inserts the module permissions into the DB
Definition at line 234 of file ModuleInstall.class.php. References JSystem::IsError(). |
|
Redefinition of this method in order to raise the error just giving the error code.
Reimplemented from JBaseObject. Definition at line 369 of file ModuleInstall.class.php. References JERROR_DEFAULT, MODULEINSTALL_ERROR_ALREADY_INSTALLED, MODULEINSTALL_ERROR_DEST_PATH_NO_WRITABLE, MODULEINSTALL_ERROR_FILE_NOT_FOUND, MODULEINSTALL_ERROR_INSERT_CONFIG, MODULEINSTALL_ERROR_INSERT_CONFIG_DEFAULT, MODULEINSTALL_ERROR_INSERT_MODULES, MODULEINSTALL_ERROR_INSERT_PERMISSIONS, MODULEINSTALL_ERROR_INSERT_TABLES, MODULEINSTALL_ERROR_NO_MODULE_DEFINED, and MODULEINSTALL_ERROR_PATH. |
|
Sets which is the file which contains the information about the module.
Definition at line 91 of file ModuleInstall.class.php. References JSystem::GetConfig(), and MODULEINSTALL_ERROR_FILE_NOT_FOUND. |
|
Sets the source path of the module
Definition at line 69 of file ModuleInstall.class.php. References MODULEINSTALL_ERROR_PATH. |
|
Inserts the tables needed for the module into de DB
Definition at line 206 of file ModuleInstall.class.php. References MODULEINSTALL_ERROR_INSERT_TABLES. |
|
The DB Object.
Definition at line 53 of file ModuleInstall.class.php. |
|
The path where the module will be installed.
Definition at line 44 of file ModuleInstall.class.php. |
|
The config.xml path.
Definition at line 43 of file ModuleInstall.class.php. |
|
Definition at line 47 of file ModuleInstall.class.php. |
|
The id of the module when it is added to the system.
Definition at line 50 of file ModuleInstall.class.php. |
|
The path where is the source of the module.
Definition at line 42 of file ModuleInstall.class.php. |
|
Indicates if it is a valid module or not.
Definition at line 54 of file ModuleInstall.class.php. |