From 55c7c943e7ac8fc7b89bea1a325087059903fbba Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 7 Nov 2009 13:10:22 -0500 Subject: Simply flag a profile for review Instead of trying to have lots of different flags on different objects, cut to the core of this functionality: flag a profile for moderator review. --- plugins/UserFlag/User_flag_profile.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (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 895da5323..d32886872 100644 --- a/plugins/UserFlag/User_flag_profile.php +++ b/plugins/UserFlag/User_flag_profile.php @@ -31,8 +31,8 @@ class User_flag_profile extends Memcached_DataObject public $__table = 'user_flag_profile'; // table name public $profile_id; // int(4) primary_key not_null public $user_id; // int(4) primary_key not_null - public $flag; // varchar(8) public $created; // datetime not_null default_0000-00-00%2000%3A00%3A00 + public $cleared; // datetime not_null default_0000-00-00%2000%3A00%3A00 /* Static get */ function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('User_flag_profile',$k,$v); } @@ -44,8 +44,8 @@ class User_flag_profile extends Memcached_DataObject 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 + 'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME, + 'cleared' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME ); } @@ -58,7 +58,7 @@ class User_flag_profile extends Memcached_DataObject return Memcached_DataObject::pkeyGet('User_flag_profile', $kv); } - static function exists($profile_id, $user_id, $flag) + static function exists($profile_id, $user_id) { $ufp = User_flag_profile::pkeyGet(array('profile_id' => $profile_id, 'user_id' => $user_id)); -- cgit v1.2.3-54-g00ecf