summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/drivers
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-20 16:32:22 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-20 16:32:22 -0700
commit7f9441c33da07b215efcb51668434b3957559fd3 (patch)
treeef9fea158aaef1ea6f3453036166c3affdad8463 /modules/gallery/libraries/drivers
parent098b57bf18112d0a3173dbe28b5ed76782431ff7 (diff)
Changes to Identity interface to allow for multiple Identity providers. What I've tested to this point, is you can install a new provider, switch to it, login as administrator, uninstall the default user module, reinstall the user module, switch back to the user module and login.
Diffstat (limited to 'modules/gallery/libraries/drivers')
-rw-r--r--modules/gallery/libraries/drivers/Identity.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/gallery/libraries/drivers/Identity.php b/modules/gallery/libraries/drivers/Identity.php
index 6ab001cb..2fc4d349 100644
--- a/modules/gallery/libraries/drivers/Identity.php
+++ b/modules/gallery/libraries/drivers/Identity.php
@@ -19,6 +19,16 @@
*/
interface Identity_Driver {
/**
+ * Initialize the provider so it is ready to use
+ */
+ public function activate();
+
+ /**
+ * Cleanup up this provider so it is unavailable for use and won't conflict with the current driver
+ */
+ public function deactivate();
+
+ /**
* Return the guest user.
*
* @return User_Definition the user object