OpenID
[ class tree: OpenID ] [ index: OpenID ] [ all elements ]

Class: OpenID_Extension_SREG10

Source Location: /OpenID-0.4.0/OpenID/Extension/SREG10.php

Class Overview

OpenID_Extension
   |
   --OpenID_Extension_SREG10

Implementation of the Simple Registration Extension version 1.0. See http://openid.net/specs/openid-simple-registration-extension-1_0.html for more information on this extension.


Author(s):

Copyright:

  • 2009 Bill Shupp

Variables


Child classes:

OpenID_Extension_SREG11
Implementation of the Simple Registration Extension, version 1.1 Draft 1.

Inherited Variables

Inherited Methods

Class: OpenID_Extension

OpenID_Extension::__construct()
Sets the message type, request or response
OpenID_Extension::fromMessageResponse()
Extracts extension contents from an OpenID_Message
OpenID_Extension::get()
Gets a key's value
OpenID_Extension::getNamespace()
Gets the namespace of this extension
OpenID_Extension::set()
Sets a key value pair
OpenID_Extension::toMessage()
Adds the extension contents to an OpenID_Message

Class Details

[line 44]
Implementation of the Simple Registration Extension version 1.0. See http://openid.net/specs/openid-simple-registration-extension-1_0.html for more information on this extension.

Example usage:

  1.   $sreg = new OpenID_Extension_SREG10(OpenID_Extension::REQUEST);
  2.   $sreg->set('required''email');
  3.   $sreg->set('optional''nickname,gender,dob');
  4.   // Add to an existing instance of OpenID_Auth_Request
  5.   $authRequest->addExtension($sreg);



[ Top ]


Class Variables

$alias =  'sreg'

[line 58]

The alias to use.
  • Access: protected

Type:   string
Overrides:   Array


[ Top ]

$requestKeys = array(
        'required',
        'optional',
        'policy_url'
    )

[line 65]

Supported keys in a request
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]

$responseKeys = array(
        'nickname',
        'email',
        'fullname',
        'dob',
        'gender',
        'postcode',
        'country',
        'language',
        'timezone'
    )

[line 76]

Supported keys in a response
  • Access: protected

Type:   array
Overrides:   Array


[ Top ]

$useNamespaceAlias =  false

[line 51]

Disables NS use, since this extension was done before OpenID 2.0
  • Access: protected

Type:   bool
Overrides:   Array


[ Top ]



Documentation generated on Mon, 11 Mar 2019 15:57:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.