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

__construct(
array $props
=
null, string $policy_url
=
null, float $version
=
1.0
)
:
array
Creates SREG extension object
Name | Type | Description |
---|---|---|
$props | array | associative array of SREG variables |
$policy_url | string | SREG policy URL |
$version | float | SREG version |
Type | Description |
---|---|
array |

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.
Name | Type | Description |
---|---|---|
$data | array | data from tusted servers database |
Type | Description |
---|---|
bool |

getSregProperties(
)
:
array
Returns array of allowed SREG variable names.
Type | Description |
---|---|
array |

getTrustData(
array $data
)
:
bool
Addes SREG properties that are allowed to be send to consumer to the given $data argument.
Name | Type | Description |
---|---|---|
$data | array | &$data data to be stored in tusted servers database |
Type | Description |
---|---|
bool |

parseRequest(
array $params
)
:
bool
Parses OpenId 'checkid_immediate' or 'checkid_setup' request, extracts SREG variables and sets ovject properties to corresponding values.
Name | Type | Description |
---|---|---|
$params | array | request's var/val pairs |
Type | Description |
---|---|
bool |

parseResponse(
array $params
)
:
bool
Parses OpenId 'id_res' response and sets object's properties according to 'openid.sreg.*' variables in response
Name | Type | Description |
---|---|---|
$params | array | response's var/val pairs |
Type | Description |
---|---|
bool |

prepareRequest(
array $params
)
:
bool
Adds additional SREG data to OpenId 'checkid_immediate' or 'checkid_setup' request.
Name | Type | Description |
---|---|---|
$params | array | &$params request's var/val pairs |
Type | Description |
---|---|
bool |