X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOpenID%2FUser_openid.php;h=1beff9ea304afebbeeec5c1391137ae0c802c2df;hb=a6408be566dc9877eb67c86d4283dd57b2255d8b;hp=801b49eccdcd612b24a891cd4ca2392e7dcfc961;hpb=2d25f288a7bebedd6c2eaf08081bccdbc9107d36;p=quix0rs-gnu-social.git diff --git a/plugins/OpenID/User_openid.php b/plugins/OpenID/User_openid.php index 801b49eccd..1beff9ea30 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)