X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/33f512fa30c06fa488c42e68f9bc9f401300a5ab..refs/pull/10/head:/Classes/class-hook.php diff --git a/Classes/class-hook.php b/Classes/class-hook.php index 30912a2..8efb26b 100644 --- a/Classes/class-hook.php +++ b/Classes/class-hook.php @@ -83,19 +83,51 @@ define('HOOKTYPE_NOTIFICATION', 104); /** HOOKTYPE_PRE_FOOTER - * $param array $empty - Doesn't do anything + * @param array $empty - Doesn't do anything * * This runs inside the footer body before anything else. */ define('HOOKTYPE_PRE_FOOTER', 105); /** HOOKTYPE_FOOTER - * $param array $empty - Doesn't do anything + * @param array $empty - Doesn't do anything * * This runs inside the footer body after everything else. */ define('HOOKTYPE_FOOTER', 106); - + +/** HOOKTYPE_USER_LOOKUP + * @param array $user [name, id] + */ +define('HOOKTYPE_USER_LOOKUP', 107); + +/** HOOKTYPE_USERMETA_ADD + * @param array $meta [[id, key, value], (object)PanelUser] + */ +define('HOOKTYPE_USERMETA_ADD', 108); + +/** HOOKTYPE_USERMETA_ADD + * @param array $meta [id, key, value] + */ +define('HOOKTYPE_USERMETA_DEL', 109); + +/** HOOKTYPE_USERMETA_ADD + * @param array $meta [id, key, value] + */ +define('HOOKTYPE_USERMETA_GET', 110); + +/** HOOKTYPE_USER_CREATE + * @param array $userinfo [] + */ +define('HOOKTYPE_USER_CREATE', 111); + +define('HOOKTYPE_GET_USER_LIST', 112); + +define('HOOKTYPE_USER_DELETE', 113); + +define('HOOKTYPE_USER_LOGIN', 114); + +define('HOOKTYPE_USER_LOGIN_FAIL', 115); /** * Class for "Hook" * This is the main function which gets called whenever you want to use a Hook. @@ -154,7 +186,6 @@ class Hook { * @param string $function The name of the function that we are removing. * @return void Does not reuturn anything. */ - public static function del($Hook, $function) { for ($i = 0; isset(self::$actions[$Hook][$i]); $i++)