PHP 클래스 Newscoop\Services\Auth\DoctrineAuthService

사용 중단: in 4.3, will be removed in 4.4
상속: implements Zend_Auth_Adapter_Interface
파일 보기 프로젝트 열기: sourcefabric/newscoop

보호된 프로퍼티들

프로퍼티 타입 설명
$em Doctrine\ORM\EntityManager
$email string
$is_admin boolean
$is_external boolean
$password string
$username string

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

authenticate() 공개 메소드

Perform authentication attempt
public authenticate ( ) : Zend_Auth_Result
리턴 Zend_Auth_Result

findByCredentials() 공개 메소드

Find by credentials
public findByCredentials ( string $email, string $password ) : Newscoop\Entity\User
$email string
$password string
리턴 Newscoop\Entity\User

setAdmin() 공개 메소드

Set is admin constrain
public setAdmin ( boolean $admin = true ) : Newscoop\Services\AuthService
$admin boolean
리턴 Newscoop\Services\AuthService

setEmail() 공개 메소드

Set email
public setEmail ( string $email ) : Newscoop\Services\AuthService
$email string
리턴 Newscoop\Services\AuthService

setExternal() 공개 메소드

Set is external constrain
public setExternal ( boolean $external = true ) : Newscoop\Services\AuthService
$external boolean
리턴 Newscoop\Services\AuthService

setPassword() 공개 메소드

Set password
public setPassword ( string $password ) : Newscoop\Services\Auth\DoctrineAuthService
$password string
리턴 Newscoop\Services\Auth\DoctrineAuthService

setUsername() 공개 메소드

Set username
public setUsername ( string $username ) : Newscoop\Services\Auth\DoctrineAuthService
$username string
리턴 Newscoop\Services\Auth\DoctrineAuthService

프로퍼티 상세

$em 보호되어 있는 프로퍼티

protected EntityManager,Doctrine\ORM $em
리턴 Doctrine\ORM\EntityManager

$email 보호되어 있는 프로퍼티

protected string $email
리턴 string

$is_admin 보호되어 있는 프로퍼티

protected bool $is_admin
리턴 boolean

$is_external 보호되어 있는 프로퍼티

protected bool $is_external
리턴 boolean

$password 보호되어 있는 프로퍼티

protected string $password
리턴 string

$username 보호되어 있는 프로퍼티

protected string $username
리턴 string