Class User
A user.
- ICanBoogie\Object implements ICanBoogie\ToArrayRecursive uses ICanBoogie\ToArrayRecursiveTrait, ICanBoogie\PrototypeTrait
- ICanBoogie\ActiveRecord
- Icybee\Modules\Users\User implements Brickrouge\CSSClassNames uses Brickrouge\CSSClassNamesProperty, ICanBoogie\ActiveRecord\CreatedAtProperty, Icybee\Modules\Users\LoggedAtProperty
Direct known subclasses
Located at vendor/icanboogie-modules/users/lib/activerecords/user.php
Methods summary
protected
|
|
protected
|
|
protected
boolean|null
|
#
get_has_legacy_password_hash( )
Checks if the password hash is a legacy hash, and not a hash created by the
|
public
|
|
public
mixed
|
|
protected
array
|
#
alter_persistent_properties( array $properties,
Unless it's an acceptable value for a column, columns with |
public
array
|
|
protected
string
|
|
protected
Icybee\Modules\Users\Users\Role
|
|
protected
array
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
array
|
|
public
mixed
|
#
has_permission( string|integer $permission, mixed $target = null )
Checks if the user has a given permission. |
public
boolean
|
|
public static
string
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
protected
array[string]mixed
|
Methods inherited from ICanBoogie\ActiveRecord
__sleep()
,
delete()
,
get_model()
,
get_model_id()
,
save()
Methods inherited from ICanBoogie\Object
from()
,
resolve_facade_properties()
,
resolve_private_properties()
,
to_json()
Methods inherited from ICanBoogie\ToArrayRecursive
Methods inherited from Brickrouge\CSSClassNames
Methods used from Brickrouge\CSSClassNamesProperty
Methods used from ICanBoogie\ActiveRecord\CreatedAtProperty
get_created_at()
,
set_created_at()
Methods used from Icybee\Modules\Users\LoggedAtProperty
get_logged_at()
,
set_logged_at()
Methods used from ICanBoogie\ToArrayRecursiveTrait
Methods used from ICanBoogie\PrototypeTrait
__call()
,
__set()
,
__wakeup()
,
get_prototype()
,
has_method()
,
has_property()
,
last_chance_get()
,
last_chance_set()
Magic methods summary
Constants summary
string |
UID
|
'uid' |
|
string |
EMAIL
|
'email' |
|
string |
PASSWORD
|
'password' |
|
string |
PASSWORD_HASH
|
'password_hash' |
|
string |
USERNAME
|
'username' |
|
string |
FIRSTNAME
|
'firstname' |
|
string |
LASTNAME
|
'lastname' |
|
string |
NICKNAME
|
'nickname' |
|
string |
CREATED_AT
|
'created_at' |
|
string |
LOGGED_AT
|
'logged_at' |
|
string |
CONSTRUCTOR
|
'constructor' |
|
string |
LANGUAGE
|
'language' |
|
string |
TIMEZONE
|
'timezone' |
|
string |
IS_ACTIVATED
|
'is_activated' |
|
string |
ROLES
|
'roles' |
|
string |
RESTRICTED_SITES
|
'restricted_sites' |
|
string |
NAME_AS
|
'name_as' |
|
integer |
NAME_AS_USERNAME
|
0 |
#
The $name property should be created from |
integer |
NAME_AS_FIRSTNAME
|
1 |
#
The $name property should be created from
|
integer |
NAME_AS_LASTNAME
|
2 |
#
The $name property should be created from |
integer |
NAME_AS_FIRSTNAME_LASTNAME
|
3 |
#
The $name property should be created from |
integer |
NAME_AS_LASTNAME_FIRSTNAME
|
4 |
#
The $name property should be created from |
integer |
NAME_AS_NICKNAME
|
5 |
#
The $name property should be created from |
Properties summary
public
string
|
$uid |
#
User identifier. |
public
string
|
$constructor |
#
Constructor of the user record (module id). |
public
string
|
#
User email. |
|
protected
string
|
$password |
#
User password. |
protected
string
|
$password_hash |
#
User password hash. |
public
string
|
$username |
#
Username of the user. |
public
string
|
$firstname |
#
First name of the user. |
public
string
|
$lastname |
#
Last name of the user. |
public
string
|
$nickname |
#
Nickname of the user. |
public
string
|
$name_as |
#
Prefered format to create the value of the $name property. |
public
string
|
$language |
#
Prefered language of the user. |
public
string
|
$timezone |
#
Prefered timezone of the user. |
public
boolean
|
$is_activated |
#
State of the user account activation. |
Properties inherited from ICanBoogie\ActiveRecord
Magic properties
public
|
$logged_at |
|
#
The date and time at which the user was logged. |
public read-only
string
|
$name |
|
#
The formatted name of the user. |
public read-only
boolean
|
$is_admin |
|
#
true if the user is admin, false otherwise. |
public read-only
boolean
|
$is_guest |
|
#
true if the user is a guest, false otherwise. |
public read-only
Icybee\Modules\Users\Users\Role
|
$role |
|
|
public read-only
string
|
$password_hash |
|
#
The password hash. |
public read-only
boolean|null
|
$has_legacy_password_hash |
|
#
Whether the password hash is a legacy hash. |