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;
/**
* Search core preloads
*
* @author trabis <[email protected]>
* @copyright XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
class SearchPreload extends PreloadItem
{
* listen for core.header.start
* @param mixed $args not used
* @return void
public static function eventCoreHeaderEnd($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.
$xoops = Xoops::getInstance();
$search = $xoops->getModuleHelper('search');
if ($search->getConfig('enable_search')) {
$xoops->tpl()->assign('search_url', $search->url('index.php'));
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.