Vergleich inc/class_plugins.php - 1.2.5 - 1.2.13

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: class_plugins.php 2163 2006-08-30 05:53:05Z chris $

 * $Id: class_plugins.php 2974 2007-04-01 13:13:13Z chris $

 */

class pluginSystem

 */

class pluginSystem

Zeile 18Zeile 18
	 * @var array
*/
var $hooks;

	 * @var array
*/
var $hooks;

 

/**
* The current hook which we're in (if any)
*
* @var string
*/
var $current_hook;


/**
* Load all plugins.


/**
* Load all plugins.

Zeile 54Zeile 61
		if(is_array($this->hooks[$hook][$priority][$function]))
{
return true;

		if(is_array($this->hooks[$hook][$priority][$function]))
{
return true;

		}


		}


		// Add the hook
$this->hooks[$hook][$priority][$function] = array(
"function" => $function,

		// Add the hook
$this->hooks[$hook][$priority][$function] = array(
"function" => $function,

Zeile 66Zeile 73

/**
* Run the hooks that have plugins.


/**
* Run the hooks that have plugins.

	 *
* @param string The name of the hook that is run.

	 *
* @param string The name of the hook that is run.

	 * @param string The argument for the hook that is run.
* @return string The arguments for the hook.
*/

	 * @param string The argument for the hook that is run.
* @return string The arguments for the hook.
*/

Zeile 77Zeile 84
		{
return $arguments;
}

		{
return $arguments;
}

 
		$this->current_hook = $hook;


ksort($this->hooks[$hook]);


ksort($this->hooks[$hook]);

		foreach($this->hooks[$hook] as $priority => $hooks)

		foreach($this->hooks[$hook] as $priority => $hooks)

		{
if(is_array($hooks))
{

		{
if(is_array($hooks))
{

Zeile 98Zeile 106
				}
}
}

				}
}
}

 
		$this->current_hook = '';

		return $arguments;
}


		return $arguments;
}


Zeile 114Zeile 123
		{
return $arguments;
}

		{
return $arguments;
}



		$this->current_hook = $hook;

		ksort($this->hooks[$hook]);
foreach($this->hooks[$hook] as $priority => $hooks)
{

		ksort($this->hooks[$hook]);
foreach($this->hooks[$hook] as $priority => $hooks)
{

Zeile 130Zeile 139
				}
}
}

				}
}
}

 
		$this->current_hook = '';

	}	

/**

	}	

/**