Auth_OpenID_SessionNegotiator Klassenreferenz


Öffentliche Methoden

 Auth_OpenID_SessionNegotiator ($allowed_types)
 setAllowedTypes ($allowed_types)
 addAllowedType ($assoc_type, $session_type=null)
 isAllowed ($assoc_type, $session_type)
 getAllowedType ()

Ausführliche Beschreibung

Definiert in Zeile 527 der Datei Association.php.


Dokumentation der Elementfunktionen

addAllowedType ( assoc_type,
session_type = null 
)

Add an association type and session type to the allowed types list. The assocation/session pairs are tried in the order that they are added.

private

Definiert in Zeile 560 der Datei Association.php.

00561     {
00562         if ($this->allowed_types === null) {
00563             $this->allowed_types = array();
00564         }
00565 
00566         if ($session_type === null) {
00567             $available = Auth_OpenID_getSessionTypes($assoc_type);
00568 
00569             if (!$available) {
00570                 return false;
00571             }
00572 
00573             foreach ($available as $session_type) {
00574                 $this->addAllowedType($assoc_type, $session_type);
00575             }
00576         } else {
00577             if (Auth_OpenID_checkSessionType($assoc_type, $session_type)) {
00578                 $this->allowed_types[] = array($assoc_type, $session_type);
00579             } else {
00580                 return false;
00581             }
00582         }
00583 
00584         return true;
00585     }

Auth_OpenID_SessionNegotiator ( allowed_types  ) 

Definiert in Zeile 528 der Datei Association.php.

00529     {
00530         $this->allowed_types = array();
00531         $this->setAllowedTypes($allowed_types);
00532     }

getAllowedType (  ) 

Get a pair of assocation type and session type that are supported.

Definiert in Zeile 603 der Datei Association.php.

00604     {
00605         if (!$this->allowed_types) {
00606             return array(null, null);
00607         }
00608 
00609         return $this->allowed_types[0];
00610     }

isAllowed ( assoc_type,
session_type 
)

Definiert in Zeile 588 der Datei Association.php.

00589     {
00590         $assoc_good = in_array(array($assoc_type, $session_type),
00591                                $this->allowed_types);
00592 
00593         $matches = in_array($session_type,
00594                             Auth_OpenID_getSessionTypes($assoc_type));
00595 
00596         return ($assoc_good && $matches);
00597     }

setAllowedTypes ( allowed_types  ) 

Set the allowed association types, checking to make sure each combination is valid.

private

Definiert in Zeile 540 der Datei Association.php.

00541     {
00542         foreach ($allowed_types as $pair) {
00543             list($assoc_type, $session_type) = $pair;
00544             if (!Auth_OpenID_checkSessionType($assoc_type, $session_type)) {
00545                 return false;
00546             }
00547         }
00548 
00549         $this->allowed_types = $allowed_types;
00550         return true;
00551     }


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen