summaryrefslogtreecommitdiff
path: root/plugins/Authentication
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-12-10 14:40:26 -0500
committerCraig Andrews <candrews@integralblue.com>2009-12-10 14:40:26 -0500
commit14f7c784a6fa11625df128309c0f211ca36101c1 (patch)
treec14e85d346f71512cec46f54b98c5a292267e690 /plugins/Authentication
parentb36ec6da87056324ce0cdf98a4745cdc992c5d52 (diff)
Add table() and keys() overrides to User_username
Diffstat (limited to 'plugins/Authentication')
-rw-r--r--plugins/Authentication/User_username.php15
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');
+ }
+
}