category Zend
package Zend_Authentication

 Methods

Sets the result code, identity, and failure messages

__construct(int $code, mixed $identity, array $messages) 

Parameters

$code

int

$identity

mixed

$messages

array

getCode() - Get the result code for this authentication attempt

getCode() : int

Returns

int

Returns the identity used in the authentication attempt

getIdentity() : mixed

Returns

mixed

Returns an array of string reasons why the authentication attempt was unsuccessful

getMessages() : array

If authentication was successful, this method returns an empty array.

Returns

array

Returns whether the result represents a successful authentication attempt

isValid() : bool

Returns

bool

 Properties

 

Authentication result code

$code : int

 

The identity used in the authentication attempt

$identity : mixed

 

An array of string reasons why the authentication attempt was unsuccessful

$messages : array

If authentication was successful, this should be an empty array.

 Constants

 

General Failure

FAILURE 

 

Failure due to invalid credential being supplied.

FAILURE_CREDENTIAL_INVALID 

 

Failure due to identity being ambiguous.

FAILURE_IDENTITY_AMBIGUOUS 

 

Failure due to identity not being found.

FAILURE_IDENTITY_NOT_FOUND 

 

Failure due to uncategorized reasons.

FAILURE_UNCATEGORIZED 

 

Authentication success.

SUCCESS