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.
$_policy_url = ''
$_props = ''
$_version = ''
__construct(
array $props
=
null, string $policy_url
=
null, float $version
=
1.0
)
:
array
Creates SREG extension object
checkTrustData(
array $data
)
:
bool
Check 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.
getPolicyUrl(
)
:
string
Returns SREG policy URL
getProperties(
)
:
array
Returns associative array of SREG variables
getSregProperties(
)
:
array
Returns array of allowed SREG variable names.
getTrustData(
array $data
)
:
bool
Addes SREG properties that are allowed to be send to consumer to the given $data argument.
getVersion(
)
:
float
Returns SREG protocol version
parseRequest(
array $params
)
:
bool
Parses OpenId 'checkid_immediate' or 'checkid_setup' request, extracts SREG variables and sets ovject properties to corresponding values.
parseResponse(
array $params
)
:
bool
Parses OpenId 'id_res' response and sets object's properties according to 'openid.sreg.*' variables in response
prepareRequest(
array $params
)
:
bool
Adds additional SREG data to OpenId 'checkid_immediate' or 'checkid_setup' request.
prepareResponse(
array $params
)
:
bool
Adds additional SREG data to OpenId 'id_res' response.