table_forum_groupcreditslog.php 829 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * [Discuz!] (C)2001-2099 Comsenz Inc.
  4. * This is NOT a freeware, use is subject to license terms
  5. *
  6. * $Id: table_forum_groupcreditslog.php 27763 2012-02-14 03:42:56Z liulanbo $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_forum_groupcreditslog extends discuz_table
  12. {
  13. public function __construct() {
  14. $this->_table = 'forum_groupcreditslog';
  15. $this->_pk = '';
  16. parent::__construct();
  17. }
  18. public function check_logdate($fid, $uid, $logdate) {
  19. return DB::result_first("SELECT logdate FROM %t WHERE fid=%d AND uid=%d AND logdate=%s", array($this->_table, $fid, $uid, $logdate));
  20. }
  21. public function delete_by_fid($fid) {
  22. if(empty($fid)) {
  23. return false;
  24. }
  25. DB::query("DELETE FROM ".DB::table('forum_groupcreditslog')." WHERE ".DB::field('fid', $fid));
  26. }
  27. }
  28. ?>