www.gusucode.com > 高端教育培训门户+论坛网站源码程序 > 整站安装/整站源码/source/class/table/table_forum_threadpartake.php
<?php /** * [Discuz!] (C)2001-2099 Comsenz Inc. * This is NOT a freeware, use is subject to license terms * * $Id: table_forum_threadpartake.php 27449 2012-02-01 05:32:35Z zhangguosheng $ */ if(!defined('IN_DISCUZ')) { exit('Access Denied'); } class table_forum_threadpartake extends discuz_table { public function __construct() { $this->_table = 'forum_threadpartake'; $this->_pk = ''; parent::__construct(); } public function delete($dateline) { return DB::query('DELETE FROM %t WHERE dateline<%d', array($this->_table, $dateline), false, true); } public function fetch($tid, $uid) { return DB::fetch_first('SELECT * FROM %t WHERE tid=%d AND uid=%d', array($this->_table, $tid, $uid)); } } ?>