37 lines
599 B
PHP
Executable File
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;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|