Parcourir la source

Expose the backend of IUser

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v15.0.0beta1
Roeland Jago Douma il y a 5 ans
Parent
révision
1fd640b40b
Aucun compte lié à l'adresse e-mail de l'auteur
2 fichiers modifiés avec 11 ajouts et 0 suppressions
  1. 4
    0
      lib/private/User/User.php
  2. 7
    0
      lib/public/IUser.php

+ 4
- 0
lib/private/User/User.php Voir le fichier

@@ -302,6 +302,10 @@ class User implements IUser {
return get_class($this->backend);
}

public function getBackend() {
return $this->backend;
}

/**
* check if the backend allows the user to change his avatar on Personal page
*

+ 7
- 0
lib/public/IUser.php Voir le fichier

@@ -108,6 +108,13 @@ interface IUser {
*/
public function getBackendClassName();

/**
* Get the backend for the current user object
*
* @since 15.0.0
*/
public function getBackend();

/**
* check if the backend allows the user to change his avatar on Personal page
*

Chargement…
Annuler
Enregistrer