table_forum_post_location.php 761 B

1234567891011121314151617181920212223242526272829303132333435
  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_post_location.php 27522 2012-02-03 04:07:44Z monkey $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_forum_post_location extends discuz_table
  12. {
  13. public function __construct() {
  14. $this->_table = 'forum_post_location';
  15. $this->_pk = 'pid';
  16. $this->_pre_cache_key = 'forum_post_location_';
  17. $this->_cache_ttl = 0;
  18. parent::__construct();
  19. }
  20. public function delete_by_uid($uid) {
  21. return $uid ? DB::delete($this->_table, DB::field('uid', $uid)) : false;
  22. }
  23. public function delete_by_tid($tid) {
  24. return $tid ? DB::delete($this->_table, DB::field('tid', $tid)) : false;
  25. }
  26. }
  27. ?>