static bool add_user(
string
$username
)
|
|
Adds user to the database and adds to User group (normal, regular user).
Parameters:
|
string |
$username: |
username |
API Tags:
| Return: | true on success, false otherwise |
| Access: | public |
static void change_active_state(
integer
$uid, bool
$active
)
|
|
Changes state of user (active or inactive).
Parameters:
|
integer |
$uid: |
user id |
|
bool |
$active: |
is active? |
API Tags:
static void get_my_user_login(
)
|
|
API Tags:
static integer get_user_id(
string
$username
)
|
|
Returns user id.
Parameters:
|
string |
$username: |
username |
API Tags:
| Return: | user id |
| Access: | public |
static string get_user_login(
integer
$id
)
|
|
Returns user username.
Parameters:
API Tags:
| Return: | username |
| Access: | public |