table_connect_feedlog.php 720 B

1234567891011121314151617181920212223242526272829303132
  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_connect_tthreadlog.php 27640 2012-02-08 09:48:47Z svn_project_zhangjie $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_connect_feedlog extends discuz_table {
  12. public function __construct() {
  13. $this->_table = 'connect_feedlog';
  14. $this->_pk = 'flid';
  15. parent::__construct();
  16. }
  17. public function fetch_by_tid($tid) {
  18. return DB::fetch_first('SELECT * FROM %t WHERE tid=%d', array($this->_table, $tid));
  19. }
  20. public function update_by_tid($tid, $data) {
  21. $tid = dintval($tid);
  22. return DB::update($this->_table, $data, DB::field('tid', $tid));
  23. }
  24. }