PHP Class App\Model\UserManager

Inheritance: extends Nette\Object, implements Nette\Security\IAuthenticator
Afficher le fichier Open project: nette/sandbox Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Context $database )
add ( $username, $email, $password ) : void Adds new user.
authenticate ( array $credentials ) : Identity Performs an authentication.

Method Details

__construct() public méthode

public __construct ( Context $database )
$database Nette\Database\Context

add() public méthode

Adds new user.
public add ( $username, $email, $password ) : void
Résultat void

authenticate() public méthode

Performs an authentication.
public authenticate ( array $credentials ) : Identity
$credentials array
Résultat Nette\Security\Identity