PHP Class Newscoop\Services\Auth\DoctrineAuthService

Deprecation: in 4.3, will be removed in 4.4
Inheritance: implements Zend_Auth_Adapter_Interface
Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$em Doctrine\ORM\EntityManager
$email string
$is_admin boolean
$is_external boolean
$password string
$username string

Méthodes publiques

Méthode Description
__construct ( EntityManager $em )
authenticate ( ) : Zend_Auth_Result Perform authentication attempt
findByCredentials ( string $email, string $password ) : Newscoop\Entity\User Find by credentials
setAdmin ( boolean $admin = true ) : Newscoop\Services\AuthService Set is admin constrain
setEmail ( string $email ) : Newscoop\Services\AuthService Set email
setExternal ( boolean $external = true ) : Newscoop\Services\AuthService Set is external constrain
setPassword ( string $password ) : Newscoop\Services\Auth\DoctrineAuthService Set password
setUsername ( string $username ) : Newscoop\Services\Auth\DoctrineAuthService Set username

Method Details

__construct() public méthode

public __construct ( EntityManager $em )
$em Doctrine\ORM\EntityManager

authenticate() public méthode

Perform authentication attempt
public authenticate ( ) : Zend_Auth_Result
Résultat Zend_Auth_Result

findByCredentials() public méthode

Find by credentials
public findByCredentials ( string $email, string $password ) : Newscoop\Entity\User
$email string
$password string
Résultat Newscoop\Entity\User

setAdmin() public méthode

Set is admin constrain
public setAdmin ( boolean $admin = true ) : Newscoop\Services\AuthService
$admin boolean
Résultat Newscoop\Services\AuthService

setEmail() public méthode

Set email
public setEmail ( string $email ) : Newscoop\Services\AuthService
$email string
Résultat Newscoop\Services\AuthService

setExternal() public méthode

Set is external constrain
public setExternal ( boolean $external = true ) : Newscoop\Services\AuthService
$external boolean
Résultat Newscoop\Services\AuthService

setPassword() public méthode

Set password
public setPassword ( string $password ) : Newscoop\Services\Auth\DoctrineAuthService
$password string
Résultat Newscoop\Services\Auth\DoctrineAuthService

setUsername() public méthode

Set username
public setUsername ( string $username ) : Newscoop\Services\Auth\DoctrineAuthService
$username string
Résultat Newscoop\Services\Auth\DoctrineAuthService

Property Details

$em protected_oe property

protected EntityManager,Doctrine\ORM $em
Résultat Doctrine\ORM\EntityManager

$email protected_oe property

protected string $email
Résultat string

$is_admin protected_oe property

protected bool $is_admin
Résultat boolean

$is_external protected_oe property

protected bool $is_external
Résultat boolean

$password protected_oe property

protected string $password
Résultat string

$username protected_oe property

protected string $username
Résultat string