XOOPS  2.6.0
SystemModule Class Reference
Inheritance diagram for SystemModule:
Inheritance graph

Public Member Functions

 __construct ()
 
 deleteBlocks (XoopsModule $module)
 
 deleteConfigs (XoopsModule $module)
 
 deleteTemplates (XoopsModule $module)
 
 getInstalledModules ()
 
 getModuleList ()
 
 getTemplate ($dirname, $template, $type= '')
 
 install ($mod= '', $force=false)
 
 installBlocks (XoopsModule $module)
 
 installconfigs (XoopsModule $module)
 
 installTemplates (XoopsModule $module)
 
 uninstall ($mod= '')
 
 update ($mod= '')
 

Public Attributes

 $error = array()
 
 $trace = array()
 

Protected Attributes

 $config_delng = array()
 
 $config_old = array()
 
 $modulesDirnames = array()
 
 $modulesList = array()
 
 $reservedTables
 
 $template_delng = array()
 

Detailed Description

Definition at line 30 of file module.php.

Constructor & Destructor Documentation

SystemModule::__construct ( )

Constructor

Definition at line 63 of file module.php.

References $module, $module_handler, $modules, $xoops, and Xoops\getInstance().

Here is the call graph for this function:

Member Function Documentation

SystemModule::deleteBlocks ( XoopsModule  $module)
SystemModule::deleteConfigs ( XoopsModule  $module)

deleteConfigs

Parameters
XoopsModule$modulemodule
Returns
void

Definition at line 1077 of file module.php.

References $config, $config_handler, $configs, $xoops, SystemLocaleEn_US\E_CONFIG_DATA_NOT_DELETED, SystemLocaleEn_US\F_CONFIG_ID, Xoops\getInstance(), Xoops\Core\Kernel\XoopsObject\getVar(), SystemLocaleEn_US\MANAGING_PREFERENCES, and SystemLocaleEn_US\S_CONFIG_DATA_DELETED.

Referenced by uninstall(), and update().

Here is the call graph for this function:

Here is the caller graph for this function:

SystemModule::deleteTemplates ( XoopsModule  $module)

deleteTemplates

Parameters
XoopsModule$modulemodule context
Returns
void

Definition at line 811 of file module.php.

References $xoops, Xoops\getInstance(), Xoops\Core\Kernel\XoopsObject\getVar(), and SystemLocaleEn_US\MANAGING_TEMPLATES.

Referenced by uninstall(), and update().

Here is the call graph for this function:

Here is the caller graph for this function:

SystemModule::getInstalledModules ( )

getInstalledModules

Returns
array of installed modules

Definition at line 160 of file module.php.

References $file, $i, $module, $module_handler, $xoops, XoopsLoad\fileExists(), XoopsBaseConfig\get(), and Xoops\getInstance().

Here is the call graph for this function:

SystemModule::getModuleList ( )

getModuleList

Returns
array of modules

Definition at line 83 of file module.php.

References $criteria, $groups, $module, $module_handler, $moduleperm_handler, $modules, $xoops, XoopsLoad\fileExists(), Xoops_Locale_Abstract\formatTimestamp(), XoopsBaseConfig\get(), and Xoops\getInstance().

Here is the call graph for this function:

SystemModule::getTemplate (   $dirname,
  $template,
  $type = '' 
)

getTemplate

Parameters
string$dirnamemodule directory
string$templatetemplate name
string$typetemplate type - blocks, admin
Returns
string

Definition at line 692 of file module.php.

References $count, $dirname, $i, $path, $type, $xoops, XoopsLoad\fileExists(), and Xoops\getInstance().

Referenced by installBlocks(), and installTemplates().

Here is the call graph for this function:

Here is the caller graph for this function:

SystemModule::install (   $mod = '',
  $force = false 
)

install a module

Parameters
string$modmodule dirname
boolean$forceforce query
Returns
bool|XoopsModule|XoopsObject

Definition at line 197 of file module.php.

References $gperm_handler, $groups, $module, $module_handler, $result, $xoops, XoopsLocaleEn_US\C_ERRORS, SystemLocaleEn_US\E_BLOCK_ACCESS_NOT_ADDED, SystemLocaleEn_US\EF_GROUP_ID_ADMIN_ACCESS_RIGHT_NOT_ADDED, SystemLocaleEn_US\EF_GROUP_ID_USER_ACCESS_RIGHT_NOT_ADDED, XoopsLocaleEn_US\EF_INVALID_SQL, XoopsLocaleEn_US\EF_NOT_EXECUTED, XoopsLocaleEn_US\EF_NOT_INSERTED_TO_DATABASE, XoopsLocaleEn_US\EF_NOT_INSTALLED, SystemLocaleEn_US\EF_SQL_FILE_NOT_FOUND, SystemLocaleEn_US\EF_TABLE_IS_RESERVED, SystemLocaleEn_US\F_BLOCK_ID, SystemLocaleEn_US\F_GROUP_ID, SystemLocaleEn_US\F_MODULE_ID, XoopsLoad\fileExists(), XoopsBaseConfig\get(), Xoops\Core\Events\getInstance(), Xoops\getInstance(), Xoops\Core\Database\Schema\ImportSchema\importSchemaArray(), installBlocks(), installTemplates(), XoopsLoad\loadFile(), SystemLocaleEn_US\MANAGING_PERMISSIONS, SystemLocaleEn_US\MANAGING_TABLES, SqlUtility\prefixQuery(), SystemLocaleEn_US\S_BLOCK_ACCESS_ADDED, XoopsLocaleEn_US\S_DATA_INSERTED, XoopsLocaleEn_US\SF_DATA_INSERTED_TO_TABLE, XoopsLocaleEn_US\SF_EXECUTED, SystemLocaleEn_US\SF_GROUP_ID_ADMIN_ACCESS_RIGHT_ADDED, SystemLocaleEn_US\SF_GROUP_ID_USER_ACCESS_RIGHT_ADDED, XoopsLocaleEn_US\SF_INSTALLED, SystemLocaleEn_US\SF_SQL_FILE_FOUND, XoopsLocaleEn_US\SF_TABLE_CREATED, and SqlUtility\splitMySqlFile().

Here is the call graph for this function:

SystemModule::installTemplates ( XoopsModule  $module)

Member Data Documentation

SystemModule::$config_delng = array()
protected

Definition at line 36 of file module.php.

SystemModule::$config_old = array()
protected

Definition at line 38 of file module.php.

SystemModule::$error = array()

Definition at line 32 of file module.php.

SystemModule::$modulesDirnames = array()
protected

Definition at line 35 of file module.php.

SystemModule::$modulesList = array()
protected

Definition at line 34 of file module.php.

SystemModule::$reservedTables
protected
Initial value:
= array(
'block_module_link',
'config',
'configoption',
'groups',
'groups_users_link',
'group_permission',
'imgset',
'imgsetimg',
'imgset_tplset_link',
'modules',
'newblocks',
'online',
'priv_msgs',
'session',
'tplfile',
'tplset',
'tplsource',
'users',
)

Definition at line 39 of file module.php.

SystemModule::$template_delng = array()
protected

Definition at line 37 of file module.php.

SystemModule::$trace = array()

Definition at line 33 of file module.php.


The documentation for this class was generated from the following file: