summaryrefslogtreecommitdiffstats
path: root/application/service/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-05-19 00:11:15 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-05-19 00:11:15 +0200
commitb6c54853e96bd0616743a7e938b1b01712672be5 (patch)
treef48ee206de38e5a8bef326995646218d9a389e6d /application/service/user.php
parent11ea08df8d4784aad4836852180098c45b90c5a2 (diff)
Document invitation key creation/deletion methods
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/service/user.php')
-rw-r--r--application/service/user.php11
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();