XOOPS  2.6.0
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 
13 
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
Definition: execute.php:31
static getInstance()
Definition: helper.php:36
static eventOnModuleUninstall($args)
Definition: preload.php:48
$module
Definition: main.php:52
static eventCoreIncludeCommonClassmaps($args)
Definition: preload.php:33
static addMap(array $map)
Definition: xoopsload.php:40