PHP Class Traq\Models\User

Since: 3.0.0
Author: Jack P.
Inheritance: extends Traq\Models\Model, use trait Avalon\Database\Model\SecurePassword
Mostrar archivo Open project: nirix/traq Class Usage Examples

Protected Properties

Property Type Description
$_before
$_belongsTo
$_tableAlias
$_validations
$securePasswordField

Public Methods

Method Description
authenticate ( $password ) : boolean
isAdmin ( ) : boolean
validate ( ) Add password confirmation validation.

Protected Methods

Method Description
beforeCreate ( ) Set defaults before creating user.

Method Details

authenticate() public method

public authenticate ( $password ) : boolean
return boolean

beforeCreate() protected method

Set defaults before creating user.
protected beforeCreate ( )

isAdmin() public method

public isAdmin ( ) : boolean
return boolean

validate() public method

Add password confirmation validation.
public validate ( )

Property Details

$_before protected_oe static_oe property

protected static $_before

$_belongsTo protected_oe static_oe property

protected static $_belongsTo

$_tableAlias protected_oe static_oe property

protected static $_tableAlias

$_validations protected_oe static_oe property

protected static $_validations

$securePasswordField protected_oe property

protected $securePasswordField