PHP Class Components\Model\User

Inheritance: extends Model, use trait Components\Model\Traits\Timestampable, use trait Components\Model\Traits\SoftDeletable
Afficher le fichier Open project: phalconslayer/slayer Class Usage Examples

Méthodes publiques

Свойство Type Description
$email
$password
$token

Protected Properties

Свойство Type Description
$activated
$name

Méthodes publiques

Méthode Description
getActivated ( ) : boolean To know if the account is activated.
getEmail ( ) : string Get the user's email.
getName ( ) : string Get the user's name.
getSource ( ) : string By every request, phalcon will always pull this function as basis to know what is the table's name.
setActivated ( boolean $bool ) : mixed Set the column activated in the table as boolean.
setEmail ( string $email ) Set the email.
setName ( string $name ) : mixed Set the name field.

Method Details

getActivated() public méthode

To know if the account is activated.
public getActivated ( ) : boolean
Résultat boolean

getEmail() public méthode

Get the user's email.
public getEmail ( ) : string
Résultat string

getName() public méthode

Get the user's name.
public getName ( ) : string
Résultat string

getSource() public méthode

By every request, phalcon will always pull this function as basis to know what is the table's name.
public getSource ( ) : string
Résultat string

setActivated() public méthode

Set the column activated in the table as boolean.
public setActivated ( boolean $bool ) : mixed
$bool boolean a boolean value to be based if activated or not
Résultat mixed

setEmail() public méthode

Set the email.
public setEmail ( string $email )
$email string

setName() public méthode

Set the name field.
public setName ( string $name ) : mixed
$name string setting the name of the user
Résultat mixed

Property Details

$activated protected_oe property

protected $activated

$email public_oe property

public $email

$name protected_oe property

protected $name

$password public_oe property

public $password

$token public_oe property

public $token