ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
SReg.php File Reference

Go to the source code of this file.

Data Structures

class  Auth_OpenID_SRegBase
class  Auth_OpenID_SRegRequest
class  Auth_OpenID_SRegResponse

Namespaces

namespace  OpenID
 This module contains code for dealing with associations between consumers and servers.

Functions

 Auth_OpenID_checkFieldName ($field_name)
 Check to see that the given value is a valid simple registration data field name.
 Auth_OpenID_supportsSReg ($endpoint)
 Does the given endpoint advertise support for simple registration?

Variables

global $Auth_OpenID_sreg_data_fields
 Import message and extension internals.
const Auth_OpenID_SREG_NS_URI_1_0 = 'http://openid.net/sreg/1.0'
const Auth_OpenID_SREG_NS_URI_1_1 = 'http://openid.net/extensions/sreg/1.1'
const Auth_OpenID_SREG_NS_URI = Auth_OpenID_SREG_NS_URI_1_1

Function Documentation

Auth_OpenID_checkFieldName (   $field_name)

Check to see that the given value is a valid simple registration data field name.

Return true if so, false if not.

Definition at line 65 of file SReg.php.

References $Auth_OpenID_sreg_data_fields.

Referenced by Auth_OpenID_SRegResponse\get(), and Auth_OpenID_SRegRequest\requestField().

{
if (!in_array($field_name, array_keys($Auth_OpenID_sreg_data_fields))) {
return false;
}
return true;
}

+ Here is the caller graph for this function:

Auth_OpenID_supportsSReg (   $endpoint)

Does the given endpoint advertise support for simple registration?

$endpoint: The endpoint object as returned by OpenID discovery. returns whether an sreg type was advertised by the endpoint

Definition at line 97 of file SReg.php.

References Auth_OpenID_SREG_NS_URI_1_0, and Auth_OpenID_SREG_NS_URI_1_1.

Referenced by ilAuthContainerOpenId\fetchData().

{
return ($endpoint->usesExtension(Auth_OpenID_SREG_NS_URI_1_1) ||
$endpoint->usesExtension(Auth_OpenID_SREG_NS_URI_1_0));
}

+ Here is the caller graph for this function:

Variable Documentation

$Auth_OpenID_sreg_data_fields
Initial value:
array(
'fullname' => 'Full Name',
'nickname' => 'Nickname',
'dob' => 'Date of Birth',
'email' => 'E-mail Address',
'gender' => 'Gender',
'postcode' => 'Postal Code',
'country' => 'Country',
'language' => 'Language',
'timezone' => 'Time Zone')

Import message and extension internals.

Definition at line 45 of file SReg.php.

Referenced by Auth_OpenID_checkFieldName(), and Auth_OpenID_SRegResponse\fromSuccessResponse().

const Auth_OpenID_SREG_NS_URI = Auth_OpenID_SREG_NS_URI_1_1

Definition at line 86 of file SReg.php.

Referenced by Auth_OpenID_SRegRequest\fromOpenIDRequest().

const Auth_OpenID_SREG_NS_URI_1_0 = 'http://openid.net/sreg/1.0'

Definition at line 77 of file SReg.php.

Referenced by Auth_OpenID_SRegBase\_getSRegNS(), and Auth_OpenID_supportsSReg().

const Auth_OpenID_SREG_NS_URI_1_1 = 'http://openid.net/extensions/sreg/1.1'

Definition at line 81 of file SReg.php.

Referenced by Auth_OpenID_SRegBase\_getSRegNS(), and Auth_OpenID_supportsSReg().