Files
web-discuz/source/plugin/thread_across/table/table_across_pbforums.php
2025-06-27 21:04:18 +08:00

37 lines
599 B
PHP
Executable File

<?php
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
class table_across_pbforums extends discuz_table
{
public function __construct() {
$this->_table = 'across_pbforums';
$this->_pk = 'uid';
parent::__construct();
}
public function fetch_by_uid ($uid = null ){
if( empty($uid) ) return array();
$sql = 'select * from %t where %i limit 1';
$arg = array(
$this->_table ,
DB::field('uid', $uid)
);
$data = DB::fetch_first($sql , $arg);
if($data['fids']){
$data['fids'] = array_filter(explode(',', $data['fids']));
}
return $data;
}
}
?>