Can open user page from virtual directory name

This commit is contained in:
Pierre
2017-12-16 14:43:31 +01:00
parent 8d313b6e4c
commit 4cc00b7868
4 changed files with 113 additions and 3 deletions

View File

@ -390,6 +390,11 @@ var ComunicWeb = {
*/
getNames: function(usersID, afterNames){},
/**
* Get the user ID specified by its folder name
*/
getIDfromPath: function(path, callback){},
/**
* Empty users cache
*/
@ -629,7 +634,6 @@ var ComunicWeb = {
*/
openHomePage: function(additionnalData, targetElement){},
},
/**
@ -658,6 +662,11 @@ var ComunicWeb = {
*/
open: function(params, target){},
/**
* Open user page specified by user ID
*/
openUserPage: function(id, params, target){},
},
},

View File

@ -31,6 +31,15 @@ function openPage(pageURI, additionnalData){
return ComunicWeb.common.page.openPage(pageURI, additionnalData);
}
/**
* Check if user is signed in or not
*
* @return {Boolean} True if the user is signed in / false else
*/
function signed_in(){
return ComunicWeb.user.userLogin.getUserLoginState();
}
/**
* Returns user ID (if logged in)
*