| Server IP : 195.130.67.5 / Your IP : 216.73.217.127 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/Engineering/V2/modules/mod_exmenu-j15/exmenu/loader/ |
Upload File : |
<?php
/**
* @version $Id:$
* @author Daniel Ecer
* @package exmenu
* @copyright (C) 2005-2009 Daniel Ecer (de.siteof.de)
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
// no direct access
if (!defined('EXTENDED_MENU_HOME')) {
die('Restricted access');
}
/**
* @since 1.0.0
*/
class PluginExtendedMenuLoader extends AbstractExtendedMenuLoader {
function loadBySourceValues($sourceValues) {
return $this->loadByPluginAndSourceName($sourceValues);
}
function loadByPluginAndSourceName($sourceValues) {
$results = FALSE;
$pluginName = implode(',', $sourceValues);
if (function_exists('jimport')) {
JPluginHelper::importPlugin('exmenu');
$dispatcher =& JDispatcher::getInstance();
$results = $dispatcher->trigger('onLoadMenu', array(&$this, $pluginName));
} else {
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup('exmenu');
$results = $_MAMBOTS->trigger('onLoadMenu', array(&$this, $pluginName), FALSE);
}
$result = FALSE;
foreach($results as $r) {
$result |= $r;
}
if (!$result) {
trigger_error('exmenu: no plugin found for the name "'.$pluginName.'"', E_USER_NOTICE);
}
return $result;
}
}
?>