for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
use Xoops\Core\PreloadItem;
/**
* plugins module
*
* @copyright XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @package plugins
* @since 2.6.0
* @author trabis <[email protected]>
* @version $Id$
class PluginsPreload extends PreloadItem
{
* listen for core.include.common.classmaps
* add any module specific class map entries
* @param mixed $args not used
* @return void
public static function eventCoreIncludeCommonClassmaps($args)
$args
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$path = dirname(__DIR__);
XoopsLoad::addMap(array(
'plugins' => $path . '/class/helper.php',
'pluginsmanager' => $path . '/class/manager.php',
));
}
* Filters an orders plugin listeners
* @param array $args
public static function eventCoreModulePluginGetPlugins($args)
//Don't run during uninstall, getActiveModule('plugins') won't work.
if (\Xoops::getInstance()->getModuleByDirname('plugins')) {
$args[0] = Plugins::getInstance()->getHandlerPlugin()->getActiveListenersByCaller($args[1]);
getHandlerPlugin()
Xoops\Module\Helper\HelperAbstract
getHandler()
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.