OpenId/Extension/Sreg.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_OpenId
- Version
- $Id$
\Zend_OpenId_Extension_Sreg
- Parent(s)
- \Zend_OpenId_Extension
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties
Methods


__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( $data) : bool
Addes SREG properties that are allowed to be send to consumer to the given $data argument.
Name | Type | Description |
---|---|---|
$data |
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( $params) : bool
Adds additional SREG data to OpenId 'checkid_immediate' or 'checkid_setup' request.
Name | Type | Description |
---|---|---|
$params |
Type | Description |
---|---|
bool |