summaryrefslogtreecommitdiff
path: root/plugins/OpenID/User_openid.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/OpenID/User_openid.php')
-rw-r--r--plugins/OpenID/User_openid.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/plugins/OpenID/User_openid.php b/plugins/OpenID/User_openid.php
index 801b49ecc..1beff9ea3 100644
--- a/plugins/OpenID/User_openid.php
+++ b/plugins/OpenID/User_openid.php
@@ -39,9 +39,26 @@ class User_openid extends Memcached_DataObject
);
}
+ /**
+ * List primary and unique keys in this table.
+ * Unique keys used for lookup *MUST* be listed to ensure proper caching.
+ */
function keys()
{
- return array('canonical' => 'K', 'display' => 'U');
+ return array_keys($this->keyTypes());
+ }
+
+ function keyTypes()
+ {
+ return array('canonical' => 'K', 'display' => 'U', 'user_id' => 'U');
+ }
+
+ /**
+ * No sequence keys in this table.
+ */
+ function sequenceKey()
+ {
+ return array(false, false, false);
}
Static function hasOpenID($user_id)