summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorC. Montero Luque <cmonteroluque@users.noreply.github.com>2016-02-09 22:00:24 +0100
committerC. Montero Luque <cmonteroluque@users.noreply.github.com>2016-02-09 22:00:24 +0100
commit962d0c3290fc5b881c579d553373f3facaa3ab3e (patch)
tree90764075266a7708ba5ef899a5bdd4e60cbb03be /lib/public
parenta39c7591d6b0bfcb323cd14a5c1164576eaf7559 (diff)
parent03d0fb4e3f9734b36e015baa90901b222d03689c (diff)
downloadnextcloud-server-962d0c3290fc5b881c579d553373f3facaa3ab3e.tar.gz
nextcloud-server-962d0c3290fc5b881c579d553373f3facaa3ab3e.zip
Merge pull request #22252 from owncloud/consolidate-user-set-quota
Consolidate getQuota and setQuota methods in User instance
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iuser.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/public/iuser.php b/lib/public/iuser.php
index 454d45eae76..8dbec43d3c1 100644
--- a/lib/public/iuser.php
+++ b/lib/public/iuser.php
@@ -178,4 +178,23 @@ interface IUser {
* @since 9.0.0
*/
public function setEMailAddress($mailAddress);
+
+ /**
+ * get the users' quota in human readable form. If a specific quota is not
+ * set for the user, the default value is returned. If a default setting
+ * was not set otherwise, it is return as 'none', i.e. quota is not limited.
+ *
+ * @return string
+ * @since 9.0.0
+ */
+ public function getQuota();
+
+ /**
+ * set the users' quota
+ *
+ * @param string $quota
+ * @return void
+ * @since 9.0.0
+ */
+ public function setQuota($quota);
}