本文整理汇总了PHP中discuz_table::fetch_all方法的典型用法代码示例。如果您正苦于以下问题:PHP discuz_table::fetch_all方法的具体用法?PHP discuz_table::fetch_all怎么用?PHP discuz_table::fetch_all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类discuz_table
的用法示例。
在下文中一共展示了discuz_table::fetch_all方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: get_byids
public function get_byids($ids)
{
if (empty($ids)) {
return array();
}
if (!is_array($ids)) {
$ids = array($ids);
}
return parent::fetch_all($ids);
}
示例3: fetch_all
public function fetch_all($ids, $force_from_db = false, $fetch_archive = 1)
{
$data = array();
if (!empty($ids)) {
$data = parent::fetch_all($ids, $force_from_db);
if (isset($this->membersplit) && $fetch_archive && count($data) != count($ids)) {
$data = $data + C::t($this->_table . '_archive')->fetch_all(array_diff($ids, array_keys($data)));
}
}
return $data;
}
示例4: fetch_all
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();
}
}
示例5: fetch_all_by_pids
public function fetch_all_by_pids($pids)
{
return parent::fetch_all($pids);
//return DB::fetch_all('SELECT * FROM %t WHERE '.DB::field('pid', $pids), array($this->_table), 'pid');
}