[ Index ]

PHP Cross Reference of MyBB 1.8.37

title

Body

[close]

/inc/ -> class_plugins.php (summary)

(no description)

File Size: 248 lines (6 kb)
Included or required: 4 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

pluginSystem:: (5 methods):
  load()
  add_hook()
  run_hooks()
  remove_hook()
  is_compatible()


Class: pluginSystem  - X-Ref

MyBB 1.8
Copyright 2014 MyBB Group, All Rights Reserved
Website: http://www.mybb.com
License: http://www.mybb.com/about/license

load()   X-Ref
Load all plugins.

add_hook($hook, $function, $priority=10, $file="")   X-Ref
Add a hook onto which a plugin can be attached.
return: boolean Whether the hook was added.
param: string       $hook     The hook name.
param: array|string $function The function of this hook.
param: int          $priority The priority this hook has.
param: string       $file     The optional file belonging to this hook.

run_hooks($hook, &$arguments="")   X-Ref
Run the hooks that have plugins.
return: mixed The arguments for the hook.
param: string $hook      The name of the hook that is run.
param: mixed $arguments The argument for the hook that is run. The passed value MUST be a variable

remove_hook($hook, $function, $file="", $priority=10)   X-Ref
Remove a specific hook.
return: bool Whether the hook was removed successfully.
param: string       $hook     The name of the hook.
param: array|string $function The function of the hook.
param: string       $file     The filename of the plugin.
param: int          $priority The priority of the hook.

is_compatible($plugin)   X-Ref
Establishes if a particular plugin is compatible with this version of MyBB.
return: boolean TRUE if compatible, FALSE if incompatible.
param: string $plugin The name of the plugin.



2005 - 2021 © MyBB.de | Alle Rechte vorbehalten! | Sponsor: netcup Cross-referenced by PHPXref