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();
 }
Exemplo n.º 2
0
 public function __construct()
 {
     $this->_table = 'home_favorite';
     $this->_membertable = 'common_member';
     $this->_pk = 'favid';
     parent::__construct();
 }
Exemplo n.º 3
0
 public function __construct()
 {
     $this->_table = 'home_follow';
     $this->_pk = '';
     $this->_pre_cache_key = 'home_follow_';
     parent::__construct();
 }
Exemplo n.º 4
0
 public function __construct()
 {
     $this->_table = 'forum_thread';
     $this->_pk = 'tid';
     $this->_pre_cache_key = 'forum_thread_';
     parent::__construct();
 }
Exemplo n.º 5
0
 public function __construct()
 {
     $this->_table = 'pre_feedback_bug';
     $this->_allowmem = true;
     $this->_cache_ttl = 86400;
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'sanree_brand_group_module';
     $this->_jointable = 'sanree_brand_group';
     $this->_pk = 'mid';
     parent::__construct();
 }
Exemplo n.º 7
0
 public function __construct()
 {
     $this->_table = 'forum_postcache';
     $this->_pk = 'pid';
     $this->_pre_cache_key = 'forum_postcache_';
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'pre_common_basedata';
     $this->_allowmem = memory('check');
     $this->_cache_ttl = 86400;
     parent::__construct();
 }
Exemplo n.º 9
0
 public function __construct()
 {
     $this->_table = 'sanree_brand_group';
     $this->_membertable = 'common_member';
     $this->_pk = 'groupid';
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'sanree_brand_businesses_module';
     $this->_jointable = 'sanree_brand_businesses';
     $this->_pk = 'mid';
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'forum_collectionrelated';
     $this->_pk = 'tid';
     $this->_pre_cache_key = 'forum_collectionrelated_';
     parent::__construct();
 }
Exemplo n.º 12
0
 public function __construct()
 {
     $this->_table = 'common_member_verify';
     $this->_pk = 'uid';
     $this->_pre_cache_key = 'common_member_verify_';
     parent::__construct();
 }
Exemplo n.º 13
0
 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();
 }
Exemplo n.º 14
0
 public function delete_by_tid($tids)
 {
     parent::clear_cache($tids);
     if (!$tids) {
         return;
     }
     return DB::delete($this->_table, DB::field('tid', $tids));
 }
 public function __construct()
 {
     $this->_table = 'plugin_dsuamupperc';
     $this->_pk = 'id';
     $this->_pre_cache_key = 'plugin_dsuamupperc_';
     $this->_allowmem = true;
     parent::__construct();
 }
Exemplo n.º 16
0
 public function __construct()
 {
     $this->_table = 'forum_post_location';
     $this->_pk = 'pid';
     $this->_pre_cache_key = 'forum_post_location_';
     $this->_cache_ttl = 0;
     parent::__construct();
 }
 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));
 }
 public function __construct()
 {
     $this->_table = 'mobile_wsq_threadlist';
     $this->_pk = 'skey';
     $this->_pre_cache_key = 'wsq_threadlist_';
     $this->_cache_ttl = 0;
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'sanree_brand_album_category';
     $this->_joinbrandtable = 'sanree_brand_businesses';
     $this->_membertable = 'common_member';
     $this->_pk = 'catid';
     parent::__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();
 }
Exemplo n.º 21
0
	public function __construct() {

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

		parent::__construct();

/*vot*/		$this->_update_structure();
	}
 public function __construct()
 {
     $this->_table = 'bigapp_push_message';
     $this->_pk = 'id';
     $this->_fields = array('id', 'toalias', 'msgtype', 'msgmask', 'msgtitle', 'msg', 'extra', 'isdel', 'addtime');
     $this->_pre_cache_key = 'bigapp_push_message_';
     $this->_cache_ttl = 0;
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'common_member_forum_buylog';
     $this->_pk = 'uid';
     $this->_pre_cache_key = 'common_member';
     $this->_allowmem = memory('check');
     $this->_cache_ttl = 86400;
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'bigapp_connection';
     $this->_pk = 'id';
     $this->_fields = array('id', 'uid', 'openid', 'platid', 'status', 'param');
     $this->_pre_cache_key = 'bigapp_connection_';
     $this->_cache_ttl = 0;
     parent::__construct();
 }
 public function __construct()
 {
     $this->_table = 'common_remote_port';
     $this->_pk = '';
     parent::__construct();
     $porttable = getglobal('setting/porttable');
     if (empty($porttable)) {
         $this->inittable();
     }
 }
Exemplo n.º 26
0
 public function get_byids($ids)
 {
     if (empty($ids)) {
         return array();
     }
     if (!is_array($ids)) {
         $ids = array($ids);
     }
     return parent::fetch_all($ids);
 }
Exemplo n.º 27
0
 public function delete($val, $unbuffered = false)
 {
     if ($val = dintval($val, true)) {
         $this->_pre_cache_key = 'blockstylecache_';
         $this->_cache_ttl = getglobal('setting/memory/diyblock/ttl');
         $this->_allowmem = getglobal('setting/memory/diyblock/enable') && memory('check');
         return parent::delete($val, $unbuffered);
     }
     return false;
 }
Exemplo n.º 28
0
 public function __construct()
 {
     $this->_table = 'sanree_brand_businesses';
     $this->_jointable = 'sanree_brand_category';
     $this->_grouptable = 'sanree_brand_group';
     $this->_membertable = 'common_member';
     $this->_threadtable = 'forum_thread';
     $this->_blockstyletable = 'common_block_style';
     $this->_pk = 'bid';
     parent::__construct();
 }
 public function fetch_all($ids, $force_from_db = false)
 {
     $datas = parent::fetch_all($ids, $force_from_db);
     if ($datas) {
         foreach ($datas as &$data) {
             $data['data'] = unserialize($data['data']);
         }
         return $datas;
     } else {
         return array();
     }
 }
Exemplo n.º 30
0
 public function delete($val, $unbuffered = false, $fetch_archive = 0)
 {
     $ret = false;
     if ($val) {
         $ret = parent::delete($val, $unbuffered);
         if (isset($this->membersplit) && $fetch_archive) {
             $_ret = C::t($this->_table . '_archive')->delete($val, $unbuffered);
             if (!$unbuffered) {
                 $ret = $ret + $_ret;
             }
         }
     }
     return $ret;
 }