ZenMagick 0.9.10


zenmagick.store.admin.model\ZMAdminUser
model\ZMAdminUser.php at line 30

Class ZMAdminUser

ZMObject
└─ZMAdminUser
All Implemented Interfaces:
org.zenmagick.mvc.sacs.handler\ZMUserRoleCredentials

public class ZMAdminUser
extends ZMObject

A admin user.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct()

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

getPassword()

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

Method Detail

model\ZMAdminUser.php at line 42

__construct

public void __construct()

Create new user.


model\ZMAdminUser.php at line 147

addRole

public void addRole(string role)

Add a role.

Parameters:
role - The role to add.

model\ZMAdminUser.php at line 91

getEmail

public string getEmail()

Get the email address.

Returns:
The email address.

model\ZMAdminUser.php at line 65

getId

public int getId()

Get the id.

Returns:
The id.

model\ZMAdminUser.php at line 77

getName

public void getName()


model\ZMAdminUser.php at line 105

getPassword

public string getPassword()

Get the password.

Returns:
The encrypted password.

model\ZMAdminUser.php at line 160

getPref

public string getPref(string name)

Get an admin user pref.

Parameters:
name - The pref name.
Returns:
The value or null.

model\ZMAdminUser.php at line 133

getRoles

public array getRoles()

Get the roles for this user.

Returns:
A list of (string) role names.

model\ZMAdminUser.php at line 152

hasRole

public void hasRole(mixed role)


model\ZMAdminUser.php at line 119

isLive

public boolean isLive()

Check if the user is a live user.

Returns:
true if the user is a live admin user.

model\ZMAdminUser.php at line 98

setEmail

public void setEmail(mixed email)

Set the email address.

Parm:
string email The email address.

model\ZMAdminUser.php at line 72

setId

public void setId(int id)

Set the id.

Parameters:
id - The id.

model\ZMAdminUser.php at line 126

setLive

public void setLive(mixed live)

Set the live flag.

Parm:
boolean live The new value.

model\ZMAdminUser.php at line 84

setName

public void setName(string name)

Set the name.

Parameters:
name - The name.

model\ZMAdminUser.php at line 112

setPassword

public void setPassword(mixed password)

Set the (encrypted) password.

Parm:
string password The password.

model\ZMAdminUser.php at line 170

setPref

public void setPref(string name, string value)

Set an admin user pref.

Parameters:
name - The pref name.
value - The value.

model\ZMAdminUser.php at line 140

setRoles

public void setRoles(array roles)

Set the roles for this user.

Parameters:
roles - A list of (string) role names.

ZenMagick 0.9.10