ZMObject
└─ZMAdminUser
public class ZMAdminUser
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new user. |
| void | addRole(string role) Add a role. |
| string | getEmail() Get the email address. |
| int | getId() Get the id. |
| void | getName() {@inheritDoc} |
| string | Get the password. |
| string | getPref(string name) Get an admin user pref. |
| array | getRoles() Get the roles for this user. |
| void | hasRole(mixed role) {@inheritDoc} |
| boolean | isLive() Check if the user is a live user. |
| void | setEmail(mixed email) Set the email address. |
| void | setId(int id) Set the id. |
| void | setLive(mixed live) Set the live flag. |
| void | setName(string name) Set the name. |
| void | setPassword(mixed password) Set the (encrypted) password. |
| void | setPref(string name, string value) Set an admin user pref. |
| void | setRoles(array roles) Set the roles for this user. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new user.
public void addRole(string role)
Add a role.
public string getEmail()
Get the email address.
public int getId()
Get the id.
public void getName()
public string getPassword()
Get the password.
public string getPref(string name)
Get an admin user pref.
null.public array getRoles()
Get the roles for this user.
public void hasRole(mixed role)
public boolean isLive()
Check if the user is a live user.
true if the user is a live admin user.public void setEmail(mixed email)
Set the email address.
public void setId(int id)
Set the id.
public void setLive(mixed live)
Set the live flag.
public void setName(string name)
Set the name.
public void setPassword(mixed password)
Set the (encrypted) password.
public void setPref(string name, string value)
Set an admin user pref.
public void setRoles(array roles)
Set the roles for this user.
A admin user.