summaryrefslogtreecommitdiff
path: root/plugins/OpenID/User_openid.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-17 06:25:07 -0500
committerEvan Prodromou <evan@status.net>2009-11-17 06:25:07 -0500
commit6a1afda259c5223449f679a64f932e36df5ebe39 (patch)
tree7d754e8a1b7734c6750ca84b28ba0e93213e0a86 /plugins/OpenID/User_openid.php
parentd59af0296070cd868855564a0280e4be2c16410d (diff)
parent75c00f0054c08c7b49515c849260afbb6913f525 (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Conflicts: classes/statusnet.ini
Diffstat (limited to 'plugins/OpenID/User_openid.php')
-rw-r--r--plugins/OpenID/User_openid.php22
1 files changed, 20 insertions, 2 deletions
diff --git a/plugins/OpenID/User_openid.php b/plugins/OpenID/User_openid.php
index 338e0f6e9..c3624118e 100644
--- a/plugins/OpenID/User_openid.php
+++ b/plugins/OpenID/User_openid.php
@@ -2,9 +2,9 @@
/**
* Table Definition for user_openid
*/
-require_once INSTALLDIR.'/classes/Memcached_DataObject.php';
+require_once INSTALLDIR.'/classes/Plugin_DataObject.php';
-class User_openid extends Memcached_DataObject
+class User_openid extends Plugin_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
@@ -33,4 +33,22 @@ class User_openid extends Memcached_DataObject
return ($cnt > 0);
}
+
+ /**
+ * Get the TableDef object that represents the table backing this class
+ * @return TableDef TableDef instance
+ */
+ function tableDef()
+ {
+ return new TableDef($this->__table,
+ array(new ColumnDef('canonical', 'varchar',
+ '255', false, 'PRI'),
+ new ColumnDef('display', 'varchar',
+ '255', false),
+ new ColumnDef('user_id', 'integer',
+ null, false, 'MUL'),
+ new ColumnDef('created', 'datetime',
+ null, false),
+ new ColumnDef('modified', 'timestamp')));
+ }
}