]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add data definitions to user flag classes
authorEvan Prodromou <evan@status.net>
Sun, 1 Nov 2009 19:24:40 +0000 (14:24 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 1 Nov 2009 19:24:40 +0000 (14:24 -0500)
plugins/UserFlag/Notice_flag.php
plugins/UserFlag/Profile_flag.php
plugins/UserFlag/User_flag_notice.php
plugins/UserFlag/User_flag_profile.php

index adb0eadd175698f4266bbd1bee8fe4551542a52d..14e3b8402839b43ffd48582e980bee7c822bff4b 100644 (file)
@@ -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');
+    }
 }
index 41d449657c36340994b37ba5c9440d0e0bdbbd2e..1a99f10617d61804cf9af49a79bce4f52f02fec2 100644 (file)
@@ -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');
+    }
 }
index e16993997d3e3f47510362cea89d52fc48b91a54..dc08702c44cdca1651bd11a1b33bac33955b08db 100644 (file)
@@ -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);
+    }
 }
index 419d34d2feed405a7e78747231a7c3e911be34f0..99dce7529b398ff849d5901186be9bce72e7aaf2 100644 (file)
@@ -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);
+    }
 }