Public Member Functions | |
User (stdClass $data, Api $api) | |
getID () | |
getEmail () | |
getName () | |
getSurname () | |
getMobile () | |
getOpenID () | |
getUniqueID () | |
getAddress () | |
getZipcode () | |
getCountry () | |
update ($email, $username, $name, $surname, $mobile, $password) | |
delete () | |
deleteAllMyData () | |
addToGroup ($groupid) |
User::addToGroup | ( | $ | groupid | ) |
This method will add a user to the group. To add a user at least a username or user_id must be specified. Only members of the group can add a user to the group.
public
int | groupId |
User::delete | ( | ) |
This method will remove the user from the database together with his external services.
public
User::getAddress | ( | ) |
User::getCountry | ( | ) |
User::getEmail | ( | ) |
User::getID | ( | ) |
User::getMobile | ( | ) |
User::getName | ( | ) |
User::getOpenID | ( | ) |
User::getSurname | ( | ) |
User::getZipcode | ( | ) |
User::update | ( | $ | email, |
$ | username, | ||
$ | name, | ||
$ | surname, | ||
$ | mobile, | ||
$ | password | ||
) |
This method updates the details of the user. Only the user_id of the current user can be selected.
public
string | |
string | username |
string | name |
string | surname |
string | mobile |
string | password |
User::User | ( | stdClass $ | data, |
Api $ | api | ||
) |