PHP Interface Stevemo\Cpanel\User\Form\UserFormInterface

Mostra file Open project: stevemo/cpanel Interface Usage Examples

Public Methods

Method 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 method

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

getErrors() public method

Get the validation errors
Author: Steve Montambeault
public getErrors ( ) : array
return array

login() public method

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

register() public method

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

update() public method

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