ZMObject
└─ZMAdminUserRoles
public class ZMAdminUserRoles
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | Create new instance. |
| int | addRole(mixed name) Add a role. |
| void | deleteRole(mixed name) Delete a role. |
| array | Get a list of all roles. |
| array | getRolesForId(int id) Get roles for a given user id. |
| static void | instance() Get instance. |
| void | setRolesForId(int id, mixed roles, array List) Set the given roles. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct()
Create new instance.
public int addRole(mixed name)
Add a role.
public void deleteRole(mixed name)
Delete a role.
public array getAllRoles()
Get a list of all roles.
public array getRolesForId(int id)
Get roles for a given user id.
public static void instance()
Get instance.
public void setRolesForId(int id, mixed roles, array List)
Set the given roles.
Admin user roles service.