| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: mambothandler.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla.Legacy 5 * @subpackage 1.5 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // Check to ensure this file is within the rest of the framework 16 defined('JPATH_BASE') or die(); 17 18 // Register legacy classes for autoloading 19 JLoader::register('JDispatcher' , JPATH_LIBRARIES.DS.'joomla'.DS.'event'.DS.'dispatcher.php'); 20 21 /** 22 * Legacy class, use {@link JDispatcher} instead 23 * 24 * @deprecated As of version 1.5 25 * @package Joomla.Legacy 26 * @subpackage 1.5 27 */ 28 class mosMambotHandler extends JDispatcher 29 { 30 function __construct() 31 { 32 parent::__construct(); 33 } 34 35 /** 36 * Loads all the bot files for a particular group 37 * @param string The group name, relates to the sub-directory in the plugins directory 38 */ 39 function loadBotGroup( $group ) 40 { 41 return JPluginHelper::importPlugin($group, null, false); 42 } 43 /** 44 * Loads the bot file 45 * @param string The folder (group) 46 * @param string The elements (name of file without extension) 47 * @param int Published state 48 * @param string The params for the bot 49 */ 50 function loadBot( $folder, $element, $published, $params='' ) 51 { 52 return JPluginHelper::_import($folder, $element, $published, $params='' ); 53 } 54 55 /** 56 * Registers a function to a particular event group 57 * 58 * @param string The event name 59 * @param string The function name 60 */ 61 function registerFunction( $event, $function ) 62 { 63 JApplication::registerEvent( $event, $function ); 64 } 65 66 /** 67 * Deprecated, use {@link JDispatcher::trigger() JDispatcher->trigger()} instead and handle return values 68 * in your code 69 * 70 * @param string The event name 71 * @since 1.5 72 * @deprecated As of 1.5 73 */ 74 function call($event) 75 { 76 $args = & func_get_args(); 77 array_shift($args); 78 79 $retArray = $this->trigger( $event, $args ); 80 return $retArray[0]; 81 } 82 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |