XOOPS  2.6.0
XoopsLoad Class Reference

Static Public Member Functions

static addMap (array $map)
 
static fileExists ($file)
 
static getMap ()
 
static load ($name, $type="core")
 
static loadClass ($class)
 
static loadConfig ($data=null)
 
static loadCoreConfig ()
 
static loadFile ($file, $once=true)
 
static startAutoloader ($path)
 

Static Protected Member Functions

static securityCheck ($filename)
 

Static Protected Attributes

static $map = array()
 

Static Private Member Functions

static loadCore ($name)
 
static loadFramework ($name)
 
static loadModule ($name, $dirname=null)
 

Detailed Description

Definition at line 23 of file xoopsload.php.

Member Function Documentation

static XoopsLoad::fileExists (   $file)
static

Use this method instead of XoopsLoad::fileExists for increasing performance

Parameters
string$filefile name
Returns
mixed

Definition at line 506 of file xoopsload.php.

References $file.

Referenced by XoopsFolderHandler\__construct(), CommentsCommentRenderer\_getTitleIcon(), XoopsEditorHandler\_loadEditor(), Xoops\Core\Kernel\XoopsObject\_loadFilters(), tar\addDirectory(), tar\addFile(), System\adminVersion(), tar\appendTar(), b_system_main_show(), XoopsBlock\buildBlock(), XoopsEditorHandler\buildEditorList(), XoopsFolderHandler\cd(), XoopsFolderHandler\copy(), XoopsFolderHandler\create(), Xoops\getCss(), MaintenanceMaintenanceForm\getDump(), SystemExtension\getExtensionList(), SystemExtension\getInstalledExtensions(), SystemModule\getInstalledModules(), XoopsTheme\getLocalizationAssets(), Xoops\getModuleForm(), Xoops\getModuleHandler(), SystemModule\getModuleList(), XoopsBlock\getOptions(), Menus\getSkinInfo(), SystemModule\getTemplate(), XoopsMailer\getTemplatePath(), XoopsGuiDefault\header(), SystemModule\install(), XoopsModule\loadAdminMenu(), XoopsCaptcha\loadBasicConfig(), MyTextSanitizerExtension\loadConfig(), MyTextSanitizer\loadConfig(), MyTextSanitizer\loadExtension(), Xoops\Core\Kernel\XoopsObject\loadFilters(), XoopsCaptcha\loadHandler(), XoopsModule\loadInfo(), System\loadLanguage(), Xoops\loadLanguage(), Xoops_Locale\loadLocale(), Xoops_Locale\loadMailerLocale(), Xcaptcha\loadPluginHandler(), Xoops_Locale\loadThemeLocale(), menus_block_edit(), tar\openTAR(), Xoops\pathExists(), XoopsDatabaseManager\queryFromFile(), SystemBreadcrumb\render(), Xoops\Module\Admin\renderIndex(), Xoops\Module\Admin\renderNavigation(), XoopsTheme\resourcePath(), Xoops\simpleHeader(), smarty_compiler_xoAdminIcons(), smarty_compiler_xoAdminNav(), smarty_compiler_xoModuleIcons16(), smarty_compiler_xoModuleIcons32(), smarty_compiler_xoModuleIconsBookmarks(), system_adminVersion(), system_loadLanguage(), system_loadTemplate(), SystemModule\update(), and XoopsTheme\xoInit().

static XoopsLoad::getMap ( )
static

getMap - return class map

Returns
array

Definition at line 52 of file xoopsload.php.

References $map.

static XoopsLoad::load (   $name,
  $type = "core" 
)
static

load - load file based on type

Parameters
string$nameclass name
string$typetype core, framework, class, module
Returns
bool

Definition at line 65 of file xoopsload.php.

References $name, and $type.

Referenced by MytsSyntaxhighlight\geshi(), XoopsGuiDefault\header(), and MytsTextfilter\load().

Here is the caller graph for this function:

static XoopsLoad::loadClass (   $class)
static

loadClass

Parameters
string$classclass to load
Returns
bool

Definition at line 477 of file xoopsload.php.

References $file, DIRECTORY_SEPARATOR, and XoopsBaseConfig\get().

Here is the call graph for this function:

static XoopsLoad::loadConfig (   $data = null)
static

XoopsLoad::loadConfig()

Parameters
string$dataarray of configs or dirname of module
Returns
array|bool

Definition at line 422 of file xoopsload.php.

References $configs, $dirname, $file, $xoops, XoopsBaseConfig\get(), Xoops\getInstance(), and loadCoreConfig().

Here is the call graph for this function:

static XoopsLoad::loadCore (   $name)
staticprivate

Load core class

Parameters
string$nameclass name
Returns
bool|string

Definition at line 109 of file xoopsload.php.

References $file, $map, $name, and XoopsBaseConfig\get().

Here is the call graph for this function:

static XoopsLoad::loadCoreConfig ( )
static

XoopsLoad::loadCoreConfig()

Returns
array

Definition at line 194 of file xoopsload.php.

References $xoops_root_path, and XoopsBaseConfig\get().

Referenced by loadConfig(), and startAutoloader().

Here is the call graph for this function:

Here is the caller graph for this function:

static XoopsLoad::loadFramework (   $name)
staticprivate

Load Framework class

Parameters
string$nameframework class name
Returns
false|string

Definition at line 144 of file xoopsload.php.

References $file, $name, and XoopsBaseConfig\get().

Here is the call graph for this function:

static XoopsLoad::loadModule (   $name,
  $dirname = null 
)
staticprivate

Load module class

Parameters
string$nameclass name
string | null$dirnamemodule dirname
Returns
bool

Definition at line 173 of file xoopsload.php.

References $dirname, $file, $name, and XoopsBaseConfig\get().

Here is the call graph for this function:

static XoopsLoad::securityCheck (   $filename)
staticprotected

Ensure that filename does not contain exploits

Parameters
string$filenamefile name
Returns
void

Security check

Definition at line 523 of file xoopsload.php.

References exit.

static XoopsLoad::startAutoloader (   $path)
static

startAutoloader enable the autoloader

Parameters
string$pathpath of the library directory where composer managed vendor directory can be found.
Returns
void

Definition at line 540 of file xoopsload.php.

References $path, addMap(), and loadCoreConfig().

Referenced by XoopsBaseConfig\__construct().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

XoopsLoad::$map = array()
staticprotected

Definition at line 30 of file xoopsload.php.

Referenced by addMap(), getMap(), and loadCore().


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