XOOPS
2.6.0
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
preload.php
Go to the documentation of this file.
1
<?php
2
/*
3
You may not change or alter any portion of this comment or credits
4
of supporting developers from this source code or any supporting source code
5
which is considered copyrighted (c) material of the original comment or credit authors.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
use
Xoops\Core\PreloadItem
;
13
23
class
UserconfigsPreload
extends
PreloadItem
24
{
25
33
public
static
function
eventCoreIncludeCommonClassmaps
($args)
34
{
35
$path
= dirname(__DIR__);
36
XoopsLoad::addMap
(array(
37
'userconfigs'
=>
$path
.
'/class/helper.php'
,
38
));
39
}
40
48
public
static
function
eventOnModuleUninstall
($args)
49
{
50
/* @var $module XoopsModule */
51
$module
= $args[0];
52
if
($plugin = \
Xoops
\Module\Plugin::getPlugin(
$module
->getVar(
'dirname'
),
'userconfigs'
)) {
53
Userconfigs::getInstance
()->getHandlerConfig()->deleteConfigsByModule(
$module
->getVar(
'mid'
));
54
}
55
}
56
}
$path
$path
Definition:
execute.php:31
Xoops\Core\PreloadItem
Definition:
PreloadItem.php:26
Userconfigs\getInstance
static getInstance()
Definition:
helper.php:36
UserconfigsPreload\eventOnModuleUninstall
static eventOnModuleUninstall($args)
Definition:
preload.php:48
Xoops
UserconfigsPreload
Definition:
preload.php:23
PreloadItem
$module
$module
Definition:
main.php:52
UserconfigsPreload\eventCoreIncludeCommonClassmaps
static eventCoreIncludeCommonClassmaps($args)
Definition:
preload.php:33
XoopsLoad\addMap
static addMap(array $map)
Definition:
xoopsload.php:40
usr64
htdocs
modules
userconfigs
preloads
preload.php
Generated on Fri May 22 2015 03:07:00 for XOOPS by
1.8.9.1