Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
FAILURE = '0'
General Failure
Details FAILURE_IDENTITY_NOT_FOUND = '1'
Failure due to identity not being found.
Details FAILURE_IDENTITY_AMBIGUOUS = '2'
Failure due to identity being ambiguous.
Details FAILURE_CREDENTIAL_INVALID = '3'
Failure due to invalid credential being supplied.
Details FAILURE_UNCATEGORIZED = '4'
Failure due to uncategorized reasons.
Details SUCCESS = '1'
Authentication success.
Detailsint $_code = ''Authentication result code
Detailsmixed $_identity = ''The identity used in the authentication attempt
Detailsarray $_messages = ''An array of string reasons why the authentication attempt was unsuccessful
If authentication was successful, this should be an empty array.
Details__construct(
int $code, mixed $identity, array $messages
=
array
)
:
voidSets the result code, identity, and failure messages
DetailsgetCode(
)
:
intgetCode() - Get the result code for this authentication attempt
DetailsgetIdentity(
)
:
mixedReturns the identity used in the authentication attempt
DetailsgetMessages(
)
:
arrayReturns an array of string reasons why the authentication attempt was unsuccessful
If authentication was successful, this method returns an empty array.
DetailsisValid(
)
:
booleanReturns whether the result represents a successful authentication attempt
Details