diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-05-19 00:11:15 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-05-19 00:11:15 +0200 |
commit | b6c54853e96bd0616743a7e938b1b01712672be5 (patch) | |
tree | f48ee206de38e5a8bef326995646218d9a389e6d | |
parent | 11ea08df8d4784aad4836852180098c45b90c5a2 (diff) |
Document invitation key creation/deletion methods
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | application/service/user.php | 11 |
1 files changed, 11 insertions, 0 deletions
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(); |