From e42967fe3e9fd6b1bdca3b1d1c72f66b2e0b86d1 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 1 Nov 2009 14:24:40 -0500 Subject: add data definitions to user flag classes --- plugins/UserFlag/User_flag_profile.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'plugins/UserFlag/User_flag_profile.php') 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); + } } -- cgit v1.2.3-54-g00ecf