当前位置: 首页>>代码示例>>PHP>>正文


PHP discuz_table类代码示例

本文整理汇总了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();
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:7,代码来源:table_common_block_item.php

示例2: __construct

 public function __construct()
 {
     $this->_table = 'home_favorite';
     $this->_membertable = 'common_member';
     $this->_pk = 'favid';
     parent::__construct();
 }
开发者ID:herosrx,项目名称:shops,代码行数:7,代码来源:table_home_favorite.php

示例3: __construct

 public function __construct()
 {
     $this->_table = 'home_follow';
     $this->_pk = '';
     $this->_pre_cache_key = 'home_follow_';
     parent::__construct();
 }
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:7,代码来源:table_home_follow.php

示例4: __construct

 public function __construct()
 {
     $this->_table = 'forum_thread';
     $this->_pk = 'tid';
     $this->_pre_cache_key = 'forum_thread_';
     parent::__construct();
 }
开发者ID:renning,项目名称:html,代码行数:7,代码来源:table_forum_thread.php

示例5: __construct

 public function __construct()
 {
     $this->_table = 'pre_feedback_bug';
     $this->_allowmem = true;
     $this->_cache_ttl = 86400;
     parent::__construct();
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:7,代码来源:table_feedback_bug.php

示例6: __construct

 public function __construct()
 {
     $this->_table = 'sanree_brand_group_module';
     $this->_jointable = 'sanree_brand_group';
     $this->_pk = 'mid';
     parent::__construct();
 }
开发者ID:herosrx,项目名称:shops,代码行数:7,代码来源:table_sanree_brand_group_module.php

示例7: __construct

 public function __construct()
 {
     $this->_table = 'pre_common_basedata';
     $this->_allowmem = memory('check');
     $this->_cache_ttl = 86400;
     parent::__construct();
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:7,代码来源:table_common_basedata.php

示例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();
 }
开发者ID:tang86,项目名称:discuz-utf8,代码行数:7,代码来源:table_common_moderate.php

示例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));
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:8,代码来源:table_forum_debate.php

示例10: __construct

 public function __construct()
 {
     $this->_table = 'plugin_dsuamupperc';
     $this->_pk = 'id';
     $this->_pre_cache_key = 'plugin_dsuamupperc_';
     $this->_allowmem = true;
     parent::__construct();
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:8,代码来源:table_plugin_dsuamupperc.php

示例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();
 }
开发者ID:softhui,项目名称:discuz,代码行数:8,代码来源:table_forum_post_location.php

示例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));
 }
开发者ID:vanloswang,项目名称:discuzx-1,代码行数:8,代码来源:table_forum_hotreply_number.php

示例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();
 }
开发者ID:herosrx,项目名称:shops,代码行数:8,代码来源:table_sanree_brand_album_category.php

示例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();
 }
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:9,代码来源:table_common_member_connect.php

示例15: __construct

	public function __construct() {

		$this->_table = 'common_plugin';
		$this->_pk    = 'pluginid';

		parent::__construct();

/*vot*/		$this->_update_structure();
	}
开发者ID:xDiglett,项目名称:discuzx30,代码行数:9,代码来源:table_common_plugin.php


注:本文中的discuz_table类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。