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
Details RESULT_PROCESSING_FAILURE = '2'
Indicates there was an error processing the XML document
Details RESULT_VALIDATION_FAILURE = '3'
Indicates that the signature values within the XML document failed verification
Detailsarray $_claims = ''An array of claims taken from the information card
Detailsinteger $_code = ''The result code of processing the information card as defined by the constants of this class
Detailsstring $_defaultNamespace = 'null'The default namespace to assume in these claims
Detailsstring $_error = ''The error message if any
Detailsbool $_isValid = 'true'A boolean indicating if the claims should be consider "valid" or not based on processing
Details__get(
$k
)
:
Magic helper function
Details__isset(
$k
)
:
Magic helper function
Details__set(
$k, $v
)
:
Magic helper function
Details__unset(
$k
)
:
Magic helper function
DetailsclaimExists(
string $claimURI
)
:
boolIndicates if a specific claim URI exists or not within the object
DetailsforceValid(
)
:
Zend_InfoCard_ClaimsOverride 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
DetailsgetCardID(
)
:
stringRetrieve the PPI (Private Personal Identifier) associated with the information card
DetailsgetClaim(
string $claimURI
)
:
mixedGet a claim by providing its complete claim URI
DetailsgetCode(
)
:
integerGets the result code of the claims object
DetailsgetDefaultNamespace(
)
:
stringRetrieves 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
DetailsgetErrorMsg(
)
:
stringRetrieve the error message contained within the claims object
DetailsisValid(
)
:
boolIndicates if this claim object contains validated claims or not
DetailssetClaims(
array $claims
)
:
Zend_InfoCard_ClaimsSet the claims for the claims object. Can only be set once and is done by the component itself. Internal use only.
DetailssetCode(
int $code
)
:
Zend_InfoCard_ClaimsSet the result code of the claims object.
DetailssetDefaultNamespace(
string $namespace
)
:
Zend_InfoCard_ClaimsSet the default namespace, overriding any existing default
DetailssetError(
string $error
)
:
Zend_InfoCard_ClaimsSet the error message contained within the claims object
Details