本文整理汇总了PHP中discuz_table类的典型用法代码示例。如果您正苦于以下问题:PHP discuz_table类的具体用法?PHP discuz_table怎么用?PHP discuz_table使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了discuz_table类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetch_all_by_bid
public function fetch_all_by_bid($bids, $sort = false)
{
if ($sort == false) {
return parent::fetch_all($bids);
}
return ($bids = dintval($bids, true)) ? DB::fetch_all('SELECT * FROM ' . DB::table($this->_table) . ' WHERE ' . DB::field('bid', $bids) . ($sort ? ' ORDER BY displayorder, itemtype DESC' : ''), null, $this->_pk) : array();
}
示例2: __construct
public function __construct()
{
$this->_table = 'home_favorite';
$this->_membertable = 'common_member';
$this->_pk = 'favid';
parent::__construct();
}
示例3: __construct
public function __construct()
{
$this->_table = 'home_follow';
$this->_pk = '';
$this->_pre_cache_key = 'home_follow_';
parent::__construct();
}
示例4: __construct
public function __construct()
{
$this->_table = 'forum_thread';
$this->_pk = 'tid';
$this->_pre_cache_key = 'forum_thread_';
parent::__construct();
}
示例5: __construct
public function __construct()
{
$this->_table = 'pre_feedback_bug';
$this->_allowmem = true;
$this->_cache_ttl = 86400;
parent::__construct();
}
示例6: __construct
public function __construct()
{
$this->_table = 'sanree_brand_group_module';
$this->_jointable = 'sanree_brand_group';
$this->_pk = 'mid';
parent::__construct();
}
示例7: __construct
public function __construct()
{
$this->_table = 'pre_common_basedata';
$this->_allowmem = memory('check');
$this->_cache_ttl = 86400;
parent::__construct();
}
示例8: __construct
public function __construct()
{
$this->_table = '';
$this->_pk = '';
$this->_tables = array('tid' => 'forum_thread_moderate', 'pid' => 'forum_post_moderate', 'blogid' => 'home_blog_moderate', 'picid' => 'home_pic_moderate', 'doid' => 'home_doing_moderate', 'sid' => 'home_share_moderate', 'aid' => 'portal_article_moderate', 'aid_cid' => 'portal_comment_moderate', 'topicid_cid' => 'portal_comment_moderate', 'uid_cid' => 'home_comment_moderate', 'blogid_cid' => 'home_comment_moderate', 'sid_cid' => 'home_comment_moderate', 'picid_cid' => 'home_comment_moderate');
parent::__construct();
}
示例9: delete_by_tid
public function delete_by_tid($tids)
{
parent::clear_cache($tids);
if (!$tids) {
return;
}
return DB::delete($this->_table, DB::field('tid', $tids));
}
示例10: __construct
public function __construct()
{
$this->_table = 'plugin_dsuamupperc';
$this->_pk = 'id';
$this->_pre_cache_key = 'plugin_dsuamupperc_';
$this->_allowmem = true;
parent::__construct();
}
示例11: __construct
public function __construct()
{
$this->_table = 'forum_post_location';
$this->_pk = 'pid';
$this->_pre_cache_key = 'forum_post_location_';
$this->_cache_ttl = 0;
parent::__construct();
}
示例12: delete_by_pid
public function delete_by_pid($pids)
{
if (empty($pids)) {
return false;
}
return parent::delete($pids);
//return DB::query('DELETE FROM %t WHERE '.DB::field('pid', $pids), array($this->_table));
}
示例13: __construct
public function __construct()
{
$this->_table = 'sanree_brand_album_category';
$this->_joinbrandtable = 'sanree_brand_businesses';
$this->_membertable = 'common_member';
$this->_pk = 'catid';
parent::__construct();
}
示例14: __construct
public function __construct()
{
$this->_table = 'common_member_connect';
$this->_pk = 'uid';
$this->_fields = array('uid', 'conuin', 'conuinsecret', 'conopenid', 'conisfeed', 'conispublishfeed', 'conispublisht', 'conisregister', 'conisqzoneavatar');
$this->_pre_cache_key = 'common_member_connect_';
$this->_cache_ttl = 0;
parent::__construct();
}
示例15: __construct
public function __construct() {
$this->_table = 'common_plugin';
$this->_pk = 'pluginid';
parent::__construct();
/*vot*/ $this->_update_structure();
}