ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
Interface.php
Go to the documentation of this file.
1 <?php
2 
44  function storeAssociation($server_url, $association)
45  {
46  trigger_error("Auth_OpenID_OpenIDStore::storeAssociation ".
47  "not implemented", E_USER_ERROR);
48  }
49 
50  /*
51  * Remove expired nonces from the store.
52  *
53  * Discards any nonce from storage that is old enough that its
54  * timestamp would not pass useNonce().
55  *
56  * This method is not called in the normal operation of the
57  * library. It provides a way for store admins to keep their
58  * storage from filling up with expired data.
59  *
60  * @return the number of nonces expired
61  */
62  function cleanupNonces()
63  {
64  trigger_error("Auth_OpenID_OpenIDStore::cleanupNonces ".
65  "not implemented", E_USER_ERROR);
66  }
67 
68  /*
69  * Remove expired associations from the store.
70  *
71  * This method is not called in the normal operation of the
72  * library. It provides a way for store admins to keep their
73  * storage from filling up with expired data.
74  *
75  * @return the number of associations expired.
76  */
78  {
79  trigger_error("Auth_OpenID_OpenIDStore::cleanupAssociations ".
80  "not implemented", E_USER_ERROR);
81  }
82 
83  /*
84  * Shortcut for cleanupNonces(), cleanupAssociations().
85  *
86  * This method is not called in the normal operation of the
87  * library. It provides a way for store admins to keep their
88  * storage from filling up with expired data.
89  */
90  function cleanup()
91  {
92  return array($this->cleanupNonces(),
93  $this->cleanupAssociations());
94  }
95 
99  function supportsCleanup()
100  {
101  return true;
102  }
103 
134  function getAssociation($server_url, $handle = null)
135  {
136  trigger_error("Auth_OpenID_OpenIDStore::getAssociation ".
137  "not implemented", E_USER_ERROR);
138  }
139 
158  function removeAssociation($server_url, $handle)
159  {
160  trigger_error("Auth_OpenID_OpenIDStore::removeAssociation ".
161  "not implemented", E_USER_ERROR);
162  }
163 
183  function useNonce($server_url, $timestamp, $salt)
184  {
185  trigger_error("Auth_OpenID_OpenIDStore::useNonce ".
186  "not implemented", E_USER_ERROR);
187  }
188 
192  function reset()
193  {
194  }
195 
196 }
supportsCleanup()
Report whether this storage supports cleanup.
Definition: Interface.php:99
getAssociation($server_url, $handle=null)
This method returns an Association object from storage that matches the server URL and...
Definition: Interface.php:134
useNonce($server_url, $timestamp, $salt)
Called when using a nonce.
Definition: Interface.php:183
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:81
storeAssociation($server_url, $association)
This method puts an Association object into storage, retrievable by server URL and handle...
Definition: Interface.php:44
reset()
Removes all entries from the store; implementation is optional.
Definition: Interface.php:192
removeAssociation($server_url, $handle)
This method removes the matching association if it&#39;s found, and returns whether the association was r...
Definition: Interface.php:158