UserRole
in package
Class UserRole.
DB class for for storing user_role row data.
Table of Contents
- $accid : int|null
- User role account ID.
- $appid : int|null
- User role application ID.
- $rid : int|null
- User role role ID.
- $uid : int|null
- User role user ID.
- $urid : int|null
- User role ID.
- __construct() : mixed
- UserRole constructor.
- dump() : array<string|int, mixed>
- Return the user account role as an associative array.
- getAccid() : int|null
- Get the account ID.
- getAppid() : int|null
- Get the application ID.
- getRid() : int|null
- Get the role ID.
- getUid() : int|null
- Get the user ID.
- getUrid() : int|null
- Get the user role ID.
- setAccid() : void
- Set the account ID.
- setAppid() : void
- Set the application ID.
- setRid() : void
- Set the role ID.
- setUid() : void
- Set the user ID.
- setUrid() : void
- Set the user role ID.
Properties
$accid
User role account ID.
protected
int|null
$accid
Account ID.
$appid
User role application ID.
protected
int|null
$appid
Application ID.
$rid
User role role ID.
protected
int|null
$rid
Role ID.
$uid
User role user ID.
protected
int|null
$uid
User ID.
$urid
User role ID.
protected
int|null
$urid
User role ID.
Methods
__construct()
UserRole constructor.
public
__construct([int|null $urid = null ][, int|null $accid = null ][, int|null $appid = null ][, int|null $uid = null ][, int|null $rid = null ]) : mixed
Parameters
- $urid : int|null = null
-
User role ID.
- $accid : int|null = null
-
Account ID.
- $appid : int|null = null
-
Application ID.
- $uid : int|null = null
-
User ID.
- $rid : int|null = null
-
The role ID.
Return values
mixed —dump()
Return the user account role as an associative array.
public
dump() : array<string|int, mixed>
Return values
array<string|int, mixed> —Associative array.
getAccid()
Get the account ID.
public
getAccid() : int|null
Return values
int|null —Account ID.
getAppid()
Get the application ID.
public
getAppid() : int|null
Return values
int|null —Application ID.
getRid()
Get the role ID.
public
getRid() : int|null
Return values
int|null —The role ID.
getUid()
Get the user ID.
public
getUid() : int|null
Return values
int|null —User ID.
getUrid()
Get the user role ID.
public
getUrid() : int|null
Return values
int|null —user role ID.
setAccid()
Set the account ID.
public
setAccid(int|null $accid) : void
Parameters
- $accid : int|null
-
Account ID.
Return values
void —setAppid()
Set the application ID.
public
setAppid(int|null $appid) : void
Parameters
- $appid : int|null
-
Application ID.
Return values
void —setRid()
Set the role ID.
public
setRid(int|null $rid) : void
Parameters
- $rid : int|null
-
The role ID.
Return values
void —setUid()
Set the user ID.
public
setUid(int|null $uid) : void
Parameters
- $uid : int|null
-
User ID.
Return values
void —setUrid()
Set the user role ID.
public
setUrid(int|null $urid) : void
Parameters
- $urid : int|null
-
User role ID.