diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/user/user.php | 9 | ||||
-rw-r--r-- | lib/public/iuser.php | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php index 00ded84f955..062081d51d4 100644 --- a/lib/private/user/user.php +++ b/lib/private/user/user.php @@ -220,6 +220,15 @@ class User implements IUser { } /** + * Get the name of the backend class the user is connected with + * + * @return string + */ + public function getBackendClassName() { + return get_class($this->backend); + } + + /** * check if the backend allows the user to change his avatar on Personal page * * @return bool diff --git a/lib/public/iuser.php b/lib/public/iuser.php index c15edcd14dd..b288c61df5e 100644 --- a/lib/public/iuser.php +++ b/lib/public/iuser.php @@ -69,6 +69,13 @@ interface IUser { public function getHome(); /** + * Get the name of the backend class the user is connected with + * + * @return string + */ + public function getBackendClassName(); + + /** * check if the backend allows the user to change his avatar on Personal page * * @return bool |