summaryrefslogtreecommitdiff
path: root/plugins/UserFlag/User_flag_notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-01 14:24:40 -0500
committerEvan Prodromou <evan@status.net>2009-11-01 14:24:40 -0500
commite42967fe3e9fd6b1bdca3b1d1c72f66b2e0b86d1 (patch)
tree81575a77471b3a7cbf224927451dfecdd40b9517 /plugins/UserFlag/User_flag_notice.php
parent644263f9894d229bc6b9f03d5590dfecc65f9d6d (diff)
add data definitions to user flag classes
Diffstat (limited to 'plugins/UserFlag/User_flag_notice.php')
-rw-r--r--plugins/UserFlag/User_flag_notice.php20
1 files changed, 19 insertions, 1 deletions
diff --git a/plugins/UserFlag/User_flag_notice.php b/plugins/UserFlag/User_flag_notice.php
index e16993997..dc08702c4 100644
--- a/plugins/UserFlag/User_flag_notice.php
+++ b/plugins/UserFlag/User_flag_notice.php
@@ -35,8 +35,26 @@ class User_flag_notice extends Memcached_DataObject
public $created; // datetime not_null default_0000-00-00%2000%3A00%3A00
/* Static get */
- function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('User_flag_notice',$k,$v); }
+ function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('User_flag_notice',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function table() {
+ return array(
+ 'notice_id' => DB_DATAOBJECT_INT,
+ 'user_id' => DB_DATAOBJECT_INT,
+ 'flag' => DB_DATAOBJECT_STR,
+ 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME
+ );
+ }
+
+ function keys() {
+ return array('notice_id', 'user_id');
+ }
+
+ function &pkeyGet($kv)
+ {
+ return Memcached_DataObject::pkeyGet('User_flag_notice', $kv);
+ }
}