diff options
author | Evan Prodromou <evan@status.net> | 2009-12-10 14:45:47 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-12-10 14:45:47 -0500 |
commit | f3628afa006d8aacd98166d5bb9ffec8b1a74aff (patch) | |
tree | d0425e20e58a69ad30073b0fe88b79d15cc0da66 /plugins/Authentication/User_username.php | |
parent | eceb5e8a0fbf798e42fb9c1d0598d9dc0f4b7550 (diff) | |
parent | 14f7c784a6fa11625df128309c0f211ca36101c1 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'plugins/Authentication/User_username.php')
-rw-r--r-- | plugins/Authentication/User_username.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/Authentication/User_username.php b/plugins/Authentication/User_username.php index f30f60d83..853fd5cb8 100644 --- a/plugins/Authentication/User_username.php +++ b/plugins/Authentication/User_username.php @@ -43,4 +43,19 @@ class User_username extends Memcached_DataObject return false; } } + + function table() { + return array( + 'user_id' => DB_DATAOBJECT_INT, + 'username' => DB_DATAOBJECT_STR, + 'provider_name' => DB_DATAOBJECT_STR , + 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + ); + } + + // now define the keys. + function keys() { + return array('provider_name', 'username'); + } + } |