1.8 Compatible: Using the new object hook support
MyBB 1.8 introduces the ability to use object and class methods when using hooks in plugins, allowing for a much more object orientated style of plugin development. This new method can be used as follows:

PHP Code:
$myPluginObject = new MyPlugin();

$plugins->add_hook('global_start', array($myPluginObject'someFunction')); 

This gives you a fair bit of flexibility and should allow a much nicer OOP approach to plugin creation once 1.8 hits gold.
adlez likes this post