summaryrefslogtreecommitdiff
path: root/plugins/UserFlag
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserFlag')
-rw-r--r--plugins/UserFlag/Notice_flag.php12
-rw-r--r--plugins/UserFlag/Profile_flag.php12
-rw-r--r--plugins/UserFlag/User_flag_notice.php20
-rw-r--r--plugins/UserFlag/User_flag_profile.php18
4 files changed, 61 insertions, 1 deletions
diff --git a/plugins/UserFlag/Notice_flag.php b/plugins/UserFlag/Notice_flag.php
index adb0eadd1..14e3b8402 100644
--- a/plugins/UserFlag/Notice_flag.php
+++ b/plugins/UserFlag/Notice_flag.php
@@ -38,4 +38,16 @@ class Notice_flag extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function table() {
+ return array(
+ 'flag' => DB_DATAOBJECT_STR,
+ 'display' => DB_DATAOBJECT_STR,
+ 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME
+ );
+ }
+
+ function keys() {
+ return array('flag');
+ }
}
diff --git a/plugins/UserFlag/Profile_flag.php b/plugins/UserFlag/Profile_flag.php
index 41d449657..1a99f1061 100644
--- a/plugins/UserFlag/Profile_flag.php
+++ b/plugins/UserFlag/Profile_flag.php
@@ -38,4 +38,16 @@ class Profile_flag extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function table() {
+ return array(
+ 'flag' => DB_DATAOBJECT_STR,
+ 'display' => DB_DATAOBJECT_STR,
+ 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME
+ );
+ }
+
+ function keys() {
+ return array('flag');
+ }
}
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);
+ }
}
diff --git a/plugins/UserFlag/User_flag_profile.php b/plugins/UserFlag/User_flag_profile.php
index 419d34d2f..99dce7529 100644
--- a/plugins/UserFlag/User_flag_profile.php
+++ b/plugins/UserFlag/User_flag_profile.php
@@ -39,4 +39,22 @@ class User_flag_profile extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function table() {
+ return array(
+ 'profile_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('profile_id', 'user_id');
+ }
+
+ function &pkeyGet($kv)
+ {
+ return Memcached_DataObject::pkeyGet('User_flag_profile', $kv);
+ }
}