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.
Result value of the InfoCard component, contains any error messages and claims from the processing of an information card.
RESULT_SUCCESS = '1'
Successful validation and extraion of claims
RESULT_PROCESSING_FAILURE = '2'
Indicates there was an error processing the XML document
RESULT_VALIDATION_FAILURE = '3'
Indicates that the signature values within the XML document failed verification
array $_claims = ''
An array of claims taken from the information card
integer $_code = ''
The result code of processing the information card as defined by the constants of this class
string $_defaultNamespace = 'null'
The default namespace to assume in these claims
string $_error = ''
The error message if any
bool $_isValid = 'true'
A boolean indicating if the claims should be consider "valid" or not based on processing
__get(
$k
)
:
Magic helper function
__isset(
$k
)
:
Magic helper function
__set(
$k, $v
)
:
Magic helper function
__unset(
$k
)
:
Magic helper function
claimExists(
string $claimURI
)
:
bool
Indicates if a specific claim URI exists or not within the object
forceValid(
)
:
Zend_InfoCard_Claims
Override for the safeguard which ensures that you don't use claims which failed validation.
Used in situations when there was a validation error you'd like to ignore
getCardID(
)
:
string
Retrieve the PPI (Private Personal Identifier) associated with the information card
getClaim(
string $claimURI
)
:
mixed
Get a claim by providing its complete claim URI
getCode(
)
:
integer
Gets the result code of the claims object
getDefaultNamespace(
)
:
string
Retrieves the default namespace used in this information card. If a default namespace was not set, it figures out which one to consider 'default' by taking the first namespace sorted by use-count in claims
getErrorMsg(
)
:
string
Retrieve the error message contained within the claims object
isValid(
)
:
bool
Indicates if this claim object contains validated claims or not
setClaims(
array $claims
)
:
Zend_InfoCard_Claims
Set the claims for the claims object. Can only be set once and is done by the component itself. Internal use only.
setCode(
int $code
)
:
Zend_InfoCard_Claims
Set the result code of the claims object.
setDefaultNamespace(
string $namespace
)
:
Zend_InfoCard_Claims
Set the default namespace, overriding any existing default
setError(
string $error
)
:
Zend_InfoCard_Claims
Set the error message contained within the claims object