Grant

simplicite~ Grant

new Grant()

Source:
Grant (user).
You should never instanciate this class directly but rather use it from the data variable got using getGrant.

Methods

getEmail() → {string}

Source:
Get email address
Returns:
Email address
Type
string

getFirstname() → {string}

Source:
Get first name
Returns:
First name
Type
string

getFirstName() → {string}

Source:
Alias to getFirstname
Returns:
First name
Type
string

getLang() → {string}

Source:
Get language
Returns:
Language
Type
string

getLastname() → {string}

Source:
Get last name
Returns:
Last name
Type
string

getLastName() → {string}

Source:
Alias to getLastname
Returns:
Last name
Type
string

getLogin() → {string}

Source:
Alias to getUsername
Returns:
Login
Type
string

getPictureURL() → {string}

Source:
Get picture data URL
Returns:
Picture data URL
Type
string

getUserId() → {string}

Source:
Get user ID
Returns:
User ID
Type
string

getUsername() → {string}

Source:
Get username
Returns:
Username
Type
string

hasResponsibility(group) → {boolean}

Source:
Has responsibility
Parameters:
Name Type Description
group string Group name
Returns:
True if user has a responsibility on the specified group
Type
boolean

T(code)

Source:
Get text
Parameters:
Name Type Description
code string Text code