From b6c54853e96bd0616743a7e938b1b01712672be5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 19 May 2018 00:11:15 +0200 Subject: Document invitation key creation/deletion methods Signed-off-by: Florian Pritz --- application/service/user.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/application/service/user.php b/application/service/user.php index f7dfa5799..336941ca4 100644 --- a/application/service/user.php +++ b/application/service/user.php @@ -78,6 +78,11 @@ class user { ); } + /** + * Create an invitation key for a user + * @param userid id of the user + * @return key the created invitation key + */ static public function create_invitation_key($userid) { $CI =& get_instance(); @@ -104,6 +109,12 @@ class user { return $key; } + /** + * Remove an invitation key belonging to a user + * @param userid id of the user + * @param key key to remove + * @return number of removed keys + */ static public function delete_invitation_key($userid, $key) { $CI =& get_instance(); -- cgit v1.2.3-24-g4f1b