ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
Extension.php
Go to the documentation of this file.
1<?php
2
12require_once 'Auth/OpenID/Message.php';
13
25 var $ns_uri = null;
26 var $ns_alias = null;
27
33 {
34 return null;
35 }
36
42 function toMessage($message)
43 {
44 $implicit = $message->isOpenID1();
45 $added = $message->namespaces->addAlias($this->ns_uri,
46 $this->ns_alias,
47 $implicit);
48
49 if ($added === null) {
50 if ($message->namespaces->getAlias($this->ns_uri) !=
51 $this->ns_alias) {
52 return null;
53 }
54 }
55
56 $message->updateArgs($this->ns_uri,
57 $this->getExtensionArgs());
58 return $message;
59 }
60}
61
getExtensionArgs()
Get the string arguments that should be added to an OpenID message for this extension.
Definition: Extension.php:32
toMessage($message)
Add the arguments from this extension to the provided message.
Definition: Extension.php:42
$ns_uri
ns_uri: The namespace to which to add the arguments for this extension
Definition: Extension.php:25