PHP Interface Stevemo\Cpanel\User\Form\UserFormInterface

Afficher le fichier Open project: stevemo/cpanel Interface Usage Examples

Méthodes publiques

Méthode Description
create ( array $data ) : StdClass Validate and create the user
getErrors ( ) : array Get the validation errors
login ( array $credentials, boolean $remember ) : boolean Validate and log in a user
register ( array $credentials, boolean $activate ) : boolean Register a new user
update ( array $data ) : boolean Validate and update a existing user

Method Details

create() public méthode

Validate and create the user
Author: Steve Montambeault
public create ( array $data ) : StdClass
$data array
Résultat StdClass

getErrors() public méthode

Get the validation errors
Author: Steve Montambeault
public getErrors ( ) : array
Résultat array

login() public méthode

Validate and log in a user
Author: Steve Montambeault
public login ( array $credentials, boolean $remember ) : boolean
$credentials array
$remember boolean
Résultat boolean

register() public méthode

Register a new user
Author: Steve Montambeault
public register ( array $credentials, boolean $activate ) : boolean
$credentials array
$activate boolean
Résultat boolean

update() public méthode

Validate and update a existing user
Author: Steve Montambeault
public update ( array $data ) : boolean
$data array
Résultat boolean