Created userIDorPath(infos) function

This commit is contained in:
Pierre
2018-01-02 18:58:40 +01:00
parent dced14cf52
commit 3c803a16c0
3 changed files with 35 additions and 0 deletions

View File

@ -400,6 +400,11 @@ var ComunicWeb = {
*/
getIDfromPath: function(path, callback){},
/**
* Get the ID or the path of a user, depending of what is available
*/
getIDorPath: function(userInfos){},
/**
* Empty users cache
*/

View File

@ -60,6 +60,17 @@ function userID(){
return ComunicWeb.user.userLogin.getUserID();
}
/**
* Return the ID of a user, or its path, depending of what
* is available
*
* @param {Object} infos Informations about the user
* @return {String} The ID of the user, or it's path
*/
function userIDorPath(infos){
return ComunicWeb.user.userInfos.getIDorPath(infos);
}
/**
* Get multiple users informations
*