summaryrefslogtreecommitdiffstats
path: root/Auth/OpenID
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-04-03 20:47:52 +0000
committertailor <cygnus@janrain.com>2007-04-03 20:47:52 +0000
commit080222d2f329a52291fa206bf642d967236dfcda (patch)
tree10f9eee5cc394d1739feefd52f9b216e8423ba45 /Auth/OpenID
parent7c7050c13f98330dcaab58b9f2ef9b6fb21cc3ea (diff)
downloadphp-openid-080222d2f329a52291fa206bf642d967236dfcda.zip
php-openid-080222d2f329a52291fa206bf642d967236dfcda.tar.gz
php-openid-080222d2f329a52291fa206bf642d967236dfcda.tar.bz2
[project @ Session-related consumer docs updates]
Diffstat (limited to 'Auth/OpenID')
-rw-r--r--Auth/OpenID/Consumer.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/Auth/OpenID/Consumer.php b/Auth/OpenID/Consumer.php
index c98fd3f..31a1a4d 100644
--- a/Auth/OpenID/Consumer.php
+++ b/Auth/OpenID/Consumer.php
@@ -114,11 +114,10 @@
*
* First, the application should instantiate the Auth_OpenID_Consumer
* class using the store of choice (Auth_OpenID_FileStore or one of
- * the SQL-based stores). If the application has any sort of session
- * framework that provides per-client state management, a dict-like
- * object to access the session should be passed as the optional
- * second parameter. (The default behavior is to use PHP's standard
- * session machinery.)
+ * the SQL-based stores). If the application has a custom
+ * session-management implementation, an object implementing the
+ * {@link Auth_Yadis_Session} interface should be passed as the second
+ * parameter. Otherwise, the default uses $_SESSION.
*
* Next, the application should call the Auth_OpenID_Consumer object's
* 'begin' method. This method takes the OpenID URL. The 'begin'
@@ -249,15 +248,15 @@ class Auth_OpenID_Consumer {
* to store state at all, an instance of {@link
* Auth_OpenID_DumbStore} can be used.
*
- * @param mixed session An object which implements the interface
- * of the Auth_Yadis_Session class. Particularly, this object
- * is expected to have these methods: get($key), set($key,
+ * @param mixed $session An object which implements the interface
+ * of the {@link Auth_Yadis_Session} class. Particularly, this
+ * object is expected to have these methods: get($key), set($key),
* $value), and del($key). This defaults to a session object
* which wraps PHP's native session machinery. You should only
* need to pass something here if you have your own sessioning
* implementation.
*
- * @param str consumer_cls The name of the class to instantiate
+ * @param str $consumer_cls The name of the class to instantiate
* when creating the internal consumer object. This is used for
* testing.
*/