Zeile 60 | Zeile 60 |
---|
}
if(is_string($function[0]))
|
}
if(is_string($function[0]))
|
{ // Static class method
| { // Static class method
|
$method_representation = sprintf('%s::%s', $function[0], $function[1]);
|
$method_representation = sprintf('%s::%s', $function[0], $function[1]);
|
}
| }
|
elseif(is_object($function[0]))
|
elseif(is_object($function[0]))
|
{ // Instance class method $method_representation = sprintf('%s->%s', get_class($function[0]), $function[1]);
| { // Instance class method $method_representation = sprintf('%s->%s', spl_object_hash($function[0]), $function[1]);
|
} else
|
} else
|
{ // Unknown array type
| { // Unknown array type
|
return false; }
| return false; }
|
Zeile 106 | Zeile 109 |
---|
* Run the hooks that have plugins. * * @param string $hook The name of the hook that is run.
|
* Run the hooks that have plugins. * * @param string $hook The name of the hook that is run.
|
* @param string $arguments The argument for the hook that is run. The passed value MUST be a variable * @return string The arguments for the hook.
| * @param mixed $arguments The argument for the hook that is run. The passed value MUST be a variable * @return mixed The arguments for the hook.
|
*/ function run_hooks($hook, &$arguments="") {
| */ function run_hooks($hook, &$arguments="") {
|
Zeile 222 | Zeile 225 |
---|
$plugin_info = $info_func();
// No compatibility set or compatibility = * - assume compatible
|
$plugin_info = $info_func();
// No compatibility set or compatibility = * - assume compatible
|
if(!$plugin_info['compatibility'] || $plugin_info['compatibility'] == "*")
| if(empty($plugin_info['compatibility']) || $plugin_info['compatibility'] == "*")
|
{ return true; }
| { return true; }
|