Метод | Описание | |
---|---|---|
addUser ( string userLogin, string password, string email, string alias = null ) : |
Add a piwik user
|
|
deleteUser ( string userLogin ) : |
Delete a piwik user
|
|
getSitesAccessFromUser ( string userLogin ) : |
Get all sites and the specific access level (view or admin) where the given user has access to
|
|
getTokenAuth ( string userLogin, string md5Password ) : string |
Calculates the token auth by using a user login and a md5 hashed password
|
|
getUser ( string userLogin ) : |
Get a piwik user by login
|
|
getUserByEmail ( string userEmail ) : |
Get a piwik user by email
|
|
getUserLoginFromUserEmail ( string userEmail ) : string |
Get the login for a piwik user with a given email
|
|
getUserPreference ( string userLogin, string preferenceName ) : object |
Get a piwik user preference
|
|
getUsers ( string userLogins = null ) : |
Get all piwik users with the given list of logins
|
|
getUsersAccessFromSite ( int idSite ) : |
Get all piwik users and their access level for the piwik site with the given id
|
|
getUsersHavingSuperUserAccess ( ) : |
Get all piwik users which have super user access
|
|
getUsersLogin ( ) : |
Get user logins of all registered piwik users
|
|
getUsersSitesFromAccess ( UserAccess access ) : |
Get all piwik users and their sites where they have the given access level
|
|
getUsersWithSiteAccess ( int idSite, UserAccess access ) : |
Get all piwik users which have the given access to the piwik site with the given id
|
|
hasSuperUserAccess ( ) : bool |
Check if the current piwik user has super user access
|
|
setSuperUserAccess ( string userLogin, bool hasSuperUserAccess ) : |
Define if a piwik user with the given login has super user access
|
|
setUserAccess ( string userLogin, UserAccess access, int idSites ) : |
Set the access of a piwik user on a list of site ids
|
|
setUserPreference ( string userLogin, string preferenceName, object preferenceValue ) : |
Set a piwik user preference
|
|
updateUser ( string userLogin, string password = null, string email = null, string alias = null ) : |
Update a piwik user
|
|
userEmailExists ( string userEmail ) : bool |
Check if a piwik user with given email exists
|
|
userExists ( string userLogin ) : bool |
Check if a piwik user with given login exists
|
Метод | Описание | |
---|---|---|
getPlugin ( ) : string |
public addUser ( string userLogin, string password, string email, string alias = null ) : |
||
userLogin | string | |
password | string | |
string | ||
alias | string | |
Результат |
public deleteUser ( string userLogin ) : |
||
userLogin | string | |
Результат |
public getSitesAccessFromUser ( string userLogin ) : |
||
userLogin | string | |
Результат |
public getTokenAuth ( string userLogin, string md5Password ) : string | ||
userLogin | string | |
md5Password | string | |
Результат | string |
public getUser ( string userLogin ) : |
||
userLogin | string | |
Результат |
public getUserByEmail ( string userEmail ) : |
||
userEmail | string | |
Результат |
public getUserLoginFromUserEmail ( string userEmail ) : string | ||
userEmail | string | |
Результат | string |
public getUserPreference ( string userLogin, string preferenceName ) : object | ||
userLogin | string | |
preferenceName | string | |
Результат | object |
public getUsers ( string userLogins = null ) : |
||
userLogins | string | |
Результат |
public getUsersAccessFromSite ( int idSite ) : |
||
idSite | int | |
Результат |
public getUsersHavingSuperUserAccess ( ) : |
||
Результат |
public getUsersLogin ( ) : |
||
Результат |
public getUsersSitesFromAccess ( UserAccess access ) : |
||
access | UserAccess | |
Результат |
public getUsersWithSiteAccess ( int idSite, UserAccess access ) : |
||
idSite | int | |
access | UserAccess | |
Результат |
public setSuperUserAccess ( string userLogin, bool hasSuperUserAccess ) : |
||
userLogin | string | |
hasSuperUserAccess | bool | |
Результат |
public setUserAccess ( string userLogin, UserAccess access, int idSites ) : |
||
userLogin | string | |
access | UserAccess | |
idSites | int | |
Результат |
public setUserPreference ( string userLogin, string preferenceName, object preferenceValue ) : |
||
userLogin | string | |
preferenceName | string | |
preferenceValue | object | |
Результат |
public updateUser ( string userLogin, string password = null, string email = null, string alias = null ) : |
||
userLogin | string | |
password | string | |
string | ||
alias | string | |
Результат |
public userEmailExists ( string userEmail ) : bool | ||
userEmail | string | |
Результат | bool |
public userExists ( string userLogin ) : bool | ||
userLogin | string | |
Результат | bool |