/** * Instantiate a new generic hook object and register it with the global HookHandler. * * @param string $name */ public function __construct($name) { $this->name = $name; HookHandler::RegisterHook($this); }