Trait Base
Trait for \MvcCore\Ext\Auths\Basics\User
and \MvcCore\Ext\Auths\Basics\Role
class. Trait contains:
- Instance properties $id
and $active
with their public getters and setters.
Methods summary
public
integer|null
|
#
GetId( )
User unique id, representing primary key in database
or sequence number in system config.
Example: 0 | 1 | 2...
User unique id, representing primary key in database
or sequence number in system config.
Example: 0 | 1 | 2...
Returns
integer|null
|
public
MvcCore\Ext\Auths\Basics\User |MvcCore\Ext\Auths\Basics\Role
|
#
SetId( integer|null $id )
Set user unique id, representing primary key in database
or sequence number in system config.
Example: 0 | 1 | 2...
Set user unique id, representing primary key in database
or sequence number in system config.
Example: 0 | 1 | 2...
Parameters
Returns
|
public
boolean
|
#
IsActive( )
Get user active state boolean. TRUE for active, FALSE otherwise.
This function is only alias for $user->GetActive(); .
Get user active state boolean. TRUE for active, FALSE otherwise.
This function is only alias for $user->GetActive(); .
Returns
boolean
|
public
boolean
|
#
GetActive( )
Get user active state boolean. TRUE for active, FALSE otherwise.
Get user active state boolean. TRUE for active, FALSE otherwise.
Returns
boolean
|
public
MvcCore\Ext\Auths\Basics\User |MvcCore\Ext\Auths\Basics\Role
|
#
SetActive( $active )
Set user active state boolean. TRUE for active, FALSE otherwise.
Set user active state boolean. TRUE for active, FALSE otherwise.
Returns
|
Properties summary
protected
|
$id
|
|
protected
boolean
|
$active
|
|