MagicSmoke  $VERSION$
MachineUser Class Reference

encapsulated machine user/role/host management in several static functions; it is called directly from the user centered transactions; DO NOT USE THIS CLASS OUTSIDE TRANSACTION CONTEXT! More...

Static Public Member Functions

static changePasswd ($trans)
 change a users password More...
 
static createRole ($trans)
 creates a role More...
 
static createUser ($trans)
 create a new user More...
 
static deleteHost ($trans)
 deletes a host More...
 
static deleteRole ($trans)
 delete role More...
 
static deleteUser ($trans)
 deletes or merges a user More...
 
static getAllHostNames ($trans)
 get all host names (sub-routine for clients user host dialog) More...
 
static getUserHosts ($trans)
 get hosts of a user More...
 
static getUserRoles ($trans)
 returns the roles of a user More...
 
static setHost ($trans)
 create/update host More...
 
static setRoleDescription ($trans)
 sets the description of a role More...
 
static setRoleFlags ($trans)
 sets the flags of a role More...
 
static setRoleRights ($trans)
 changes the rights attached to a role More...
 
static setUserDescription ($trans)
 sets the description of a user More...
 
static setUserFlags ($trans)
 sets the flags of a user More...
 
static setUserHosts ($trans)
 set the hosts for a user More...
 
static setUserRoles ($trans)
 set roles of a user More...
 

Detailed Description

encapsulated machine user/role/host management in several static functions; it is called directly from the user centered transactions; DO NOT USE THIS CLASS OUTSIDE TRANSACTION CONTEXT!

Member Function Documentation

static MachineUser::changePasswd (   $trans)
static

change a users password

References WTuser\getFromDB(), getSalt(), and tr().

Referenced by WTrChangePassword\handleRequest().

static MachineUser::createRole (   $trans)
static

creates a role

References WTrole\getFromDB(), WTrole\newRow(), and tr().

Referenced by WTrCreateRole\handleRequest().

static MachineUser::createUser (   $trans)
static
static MachineUser::deleteHost (   $trans)
static

deletes a host

References WThost\getFromDB(), and tr().

Referenced by WTrDeleteHost\handleRequest().

static MachineUser::deleteRole (   $trans)
static

delete role

References $db, WTrole\getFromDB(), and tr().

Referenced by WTrDeleteRole\handleRequest().

static MachineUser::deleteUser (   $trans)
static

deletes or merges a user

References $db, WTuser\getFromDB(), and tr().

Referenced by WTrDeleteUser\handleRequest().

static MachineUser::getAllHostNames (   $trans)
static

get all host names (sub-routine for clients user host dialog)

References $db.

Referenced by WTrGetAllHostNames\handleRequest().

static MachineUser::getUserHosts (   $trans)
static

get hosts of a user

References $db, WTuser\getFromDB(), and tr().

Referenced by WTrGetUserHosts\handleRequest().

static MachineUser::getUserRoles (   $trans)
static

returns the roles of a user

References $db, WTuser\getFromDB(), WTuserrole\selectFromDB(), and tr().

Referenced by WTrGetUserRoles\handleRequest().

static MachineUser::setHost (   $trans)
static

create/update host

References WThost\getFromDB(), WThost\newRow(), and tr().

Referenced by WTrSetHost\handleRequest().

static MachineUser::setRoleDescription (   $trans)
static

sets the description of a role

References WTrole\getFromDB(), and tr().

Referenced by WTrSetRoleDescription\handleRequest().

static MachineUser::setRoleFlags (   $trans)
static

sets the flags of a role

References WOFlag\getAll(), WTrole\getFromDB(), and tr().

Referenced by WTrSetRoleFlags\handleRequest().

static MachineUser::setRoleRights (   $trans)
static
static MachineUser::setUserDescription (   $trans)
static

sets the description of a user

References WTuser\getFromDB(), and tr().

Referenced by WTrSetUserDescription\handleRequest().

static MachineUser::setUserFlags (   $trans)
static

sets the flags of a user

References WOFlag\getAll(), WTuser\getFromDB(), and tr().

Referenced by WTrSetUserFlags\handleRequest().

static MachineUser::setUserHosts (   $trans)
static

set the hosts for a user

References $db, WTuser\getFromDB(), and tr().

Referenced by WTrSetUserHosts\handleRequest().

static MachineUser::setUserRoles (   $trans)
static

set roles of a user

References $db, WTuser\getFromDB(), and tr().

Referenced by WTrSetUserRoles\handleRequest().


The documentation for this class was generated from the following file: