category OSS
package OSS_Auth
copyright Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland
license New BSD License

 Methods

Sets username and password for authentication

__construct(string $username, string $password, string $model, object $em, array $opts) : void

Parameters

$username

string

$password

string

$model

string

$em

object

Doctrine Entity Manager object

$opts

array

An array of authentication options (from application.ini - resources.auth.oss.*)

Exceptions

\Zend_Auth_Adapter_Exception If parameters are incorrect / not present

Performs an authentication attempt

authenticate() : \Zend_Auth_Result

Exceptions

\Zend_Auth_Adapter_Exception If authentication cannot be performed

Returns

\Zend_Auth_Result

haveCookie()

haveCookie($h) 

Parameters

$h

 Properties

 

Authentication options

$_aoptions : array
 

The Doctrine entity manager

$_em : object
 

If we have a cookie, we can skip password check

$_haveCookie : object
 

The model

$_model : string
 

The password

$_password : string
 

The username

$_username : string