table_connect_postfeedlog.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_postfeedlog.php 31305 2012-08-09 06:36:16Z liudongdong $
  7. */
  8. if(!defined('IN_DISCUZ')) {
  9. exit('Access Denied');
  10. }
  11. class table_connect_postfeedlog extends discuz_table {
  12. public function __construct() {
  13. $this->_table = 'connect_postfeedlog';
  14. $this->_pk = 'flid';
  15. parent::__construct();
  16. }
  17. public function fetch_by_pid($pid) {
  18. return DB::fetch_first('SELECT * FROM %t WHERE pid=%d', array($this->_table, $pid));
  19. }
  20. public function update_by_pid($pid, $data) {
  21. $pid = dintval($pid);
  22. return DB::update($this->_table, $data, DB::field('pid', $pid));
  23. }
  24. }