aliroAnyUser
The aliroAnyUser class is a subclass of aliroDatabaseRow, although user information is actually split between two tables. Because of the inheritance, methods such as load() are available (for more details see
aliroDatabaseRow. The class can be used for any user who has a record in the system. See
aliroUser for obtaining information about the user who is making the current request. Generally available methods are:
mailUserFromSystem ( $subject, $body )
Sends an email to the user, consisting of the given subject and body. From information will be taken from the Aliro configuration.
bool = isAdmin ()
Returns true if the user is an administrator (roles administrator or super administrator); false otherwise.
bool = isLogged ()
Returns true if the user is currently logged in; false otherwise.
bool = loadByUsername ($username)
This method loads data into the (typically empty) object by retrieving the user given a username. Returns true of data has been loaded; false otherwise.
bool = loadByEmail ($email)
Same as above, except user data is retrieved by looking for the email. Aliro requires users to have unique email addresses.
There are no comments on this page. [Add comment]