ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
Auth_OpenID_AX_Message Class Reference
+ Inheritance diagram for Auth_OpenID_AX_Message:
+ Collaboration diagram for Auth_OpenID_AX_Message:

Public Member Functions

 _checkMode ($ax_args)
 Return Auth_OpenID_AX_Error if the mode in the attribute exchange arguments does not match what is expected for this class; true otherwise. More...
 
 _newArgs ()
 Return a set of attribute exchange arguments containing the basic information that must be in every attribute exchange message. More...
 
- Public Member Functions inherited from Auth_OpenID_Extension
 getExtensionArgs ()
 Get the string arguments that should be added to an OpenID message for this extension. More...
 
 toMessage ($message)
 Add the arguments from this extension to the provided message. More...
 

Data Fields

 $ns_alias = 'ax'
 ns_alias: The preferred namespace alias for attribute exchange messages More...
 
 $mode = null
 mode: The type of this attribute exchange message. More...
 
 $ns_uri = Auth_OpenID_AX_NS_URI
 
- Data Fields inherited from Auth_OpenID_Extension
 $ns_uri = null
 ns_uri: The namespace to which to add the arguments for this extension More...
 
 $ns_alias = null
 

Detailed Description

Definition at line 83 of file AX.php.

Member Function Documentation

◆ _checkMode()

Auth_OpenID_AX_Message::_checkMode (   $ax_args)

Return Auth_OpenID_AX_Error if the mode in the attribute exchange arguments does not match what is expected for this class; true otherwise.

private

Definition at line 105 of file AX.php.

107  {
108  $mode = Auth_OpenID::arrayGet($ax_args, 'mode');
109  if ($mode != $this->mode) {
110  return new Auth_OpenID_AX_Error(
111  sprintf(
112  "Expected mode '%s'; got '%s'",
113  $this->mode, $mode));
114  }
115 
116  return true;
$mode
mode: The type of this attribute exchange message.
Definition: AX.php:94
static arrayGet($arr, $key, $fallback=null)
Convenience function for getting array values.
Definition: OpenID.php:242

◆ _newArgs()

Auth_OpenID_AX_Message::_newArgs ( )

Return a set of attribute exchange arguments containing the basic information that must be in every attribute exchange message.

private

Definition at line 125 of file AX.php.

127  {
128  return array('mode' => $this->mode);

Field Documentation

◆ $mode

Auth_OpenID_AX_Message::$mode = null

mode: The type of this attribute exchange message.

This must be overridden in subclasses.

Definition at line 94 of file AX.php.

◆ $ns_alias

Auth_OpenID_AX_Message::$ns_alias = 'ax'

ns_alias: The preferred namespace alias for attribute exchange messages

Definition at line 88 of file AX.php.

◆ $ns_uri

Auth_OpenID_AX_Message::$ns_uri = Auth_OpenID_AX_NS_URI

Definition at line 96 of file AX.php.


The documentation for this class was generated from the following file: