XOOPS
2.6.0
|
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) |
Definition at line 23 of file xoopsload.php.
|
static |
Allow modules/preloads/etc to add their own maps Use XoopsLoad::addMap(array('classname', 'path/to/class');
array | $map | class map array |
Definition at line 40 of file xoopsload.php.
References $map.
Referenced by CommentsPreload\eventCoreIncludeCommonClassmaps(), NotificationsPreload\eventCoreIncludeCommonClassmaps(), SearchPreload\eventCoreIncludeCommonClassmaps(), MenusPreload\eventCoreIncludeCommonClassmaps(), AvatarsPreload\eventCoreIncludeCommonClassmaps(), UserconfigsPreload\eventCoreIncludeCommonClassmaps(), MonologPreload\eventCoreIncludeCommonClassmaps(), DebugbarPreload\eventCoreIncludeCommonClassmaps(), LoggerPreload\eventCoreIncludeCommonClassmaps(), SmiliesCorePreload\eventCoreIncludeCommonEnd(), ImagesPreload\eventCoreIncludeCommonEnd(), LoggerPreload\eventSystemPreferencesSave(), Xoops_Locale\loadLocale(), Xoops_Locale\loadMailerLocale(), Xoops_Locale\loadThemeLocale(), and startAutoloader().
|
static |
Use this method instead of XoopsLoad::fileExists for increasing performance
string | $file | file name |
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 |
getMap - return class map
Definition at line 52 of file xoopsload.php.
References $map.
|
static |
load - load file based on type
string | $name | class name |
string | $type | type core, framework, class, module |
Definition at line 65 of file xoopsload.php.
Referenced by MytsSyntaxhighlight\geshi(), XoopsGuiDefault\header(), and MytsTextfilter\load().
|
static |
loadClass
string | $class | class to load |
Definition at line 477 of file xoopsload.php.
References $file, DIRECTORY_SEPARATOR, and XoopsBaseConfig\get().
|
static |
string | $data | array of configs or dirname of module |
Definition at line 422 of file xoopsload.php.
References $configs, $dirname, $file, $xoops, XoopsBaseConfig\get(), Xoops\getInstance(), and loadCoreConfig().
|
staticprivate |
Load core class
string | $name | class name |
Definition at line 109 of file xoopsload.php.
References $file, $map, $name, and XoopsBaseConfig\get().
|
static |
Definition at line 194 of file xoopsload.php.
References $xoops_root_path, and XoopsBaseConfig\get().
Referenced by loadConfig(), and startAutoloader().
|
static |
loadFile
string | $file | file to load |
bool | $once | true to use include_once, false for include |
Definition at line 454 of file xoopsload.php.
References $file.
Referenced by XoopsApi\deletePost(), XoopsApi\editPost(), MenusDecorator\getAvailableDecorators(), XoopsApi\getCategories(), Xoops\Module\Helper\getHelper(), Xoops\Module\Plugin\getPlugins(), XoopsApi\getPost(), XoopsApi\getRecentPosts(), SystemModule\install(), Xoops_Locale\loadLanguage(), MenusDecoratorAbstract\loadLanguage(), XoopsApi\newPost(), SystemModule\uninstall(), SystemModule\update(), xoops_module_install_comments(), xoops_module_install_notifications(), xoops_module_pre_uninstall_comments(), and xoops_module_pre_uninstall_notifications().
|
staticprivate |
Load Framework class
string | $name | framework class name |
Definition at line 144 of file xoopsload.php.
References $file, $name, and XoopsBaseConfig\get().
|
staticprivate |
Load module class
string | $name | class name |
string | null | $dirname | module dirname |
Definition at line 173 of file xoopsload.php.
References $dirname, $file, $name, and XoopsBaseConfig\get().
|
staticprotected |
Ensure that filename does not contain exploits
string | $filename | file name |
Security check
Definition at line 523 of file xoopsload.php.
References exit.
|
static |
startAutoloader enable the autoloader
string | $path | path of the library directory where composer managed vendor directory can be found. |
Definition at line 540 of file xoopsload.php.
References $path, addMap(), and loadCoreConfig().
Referenced by XoopsBaseConfig\__construct().
|
staticprotected |
Definition at line 30 of file xoopsload.php.
Referenced by addMap(), getMap(), and loadCore().