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.
'Simple Refistration Extension' for Zend_OpenId
NAMESPACE_1_1 = 'http://openid.net/extensions/sreg/1.1'
SREG 1.1 namespace. All OpenID SREG 1.1 messages MUST contain variable openid.ns.sreg with its value.
Details $_policy_url = ''
Details $_props = ''
Details $_version = ''
Details__construct(
array $props
=
null, string $policy_url
=
null, float $version
=
1.0
)
:
arrayCreates SREG extension object
DetailscheckTrustData(
array $data
)
:
boolCheck if given $data contains necessury SREG properties to sutisfy OpenId request. On success sets SREG response properties from given $data and returns true, on failure returns false.
DetailsgetPolicyUrl(
)
:
stringReturns SREG policy URL
DetailsgetProperties(
)
:
arrayReturns associative array of SREG variables
DetailsgetSregProperties(
)
:
arrayReturns array of allowed SREG variable names.
DetailsgetTrustData(
array $data
)
:
boolAddes SREG properties that are allowed to be send to consumer to the given $data argument.
DetailsgetVersion(
)
:
floatReturns SREG protocol version
DetailsparseRequest(
array $params
)
:
boolParses OpenId 'checkid_immediate' or 'checkid_setup' request, extracts SREG variables and sets ovject properties to corresponding values.
DetailsparseResponse(
array $params
)
:
boolParses OpenId 'id_res' response and sets object's properties according to 'openid.sreg.*' variables in response
DetailsprepareRequest(
array $params
)
:
boolAdds additional SREG data to OpenId 'checkid_immediate' or 'checkid_setup' request.
DetailsprepareResponse(
array $params
)
:
boolAdds additional SREG data to OpenId 'id_res' response.
Details