本文整理汇总了PHP中dbeav_model::count方法的典型用法代码示例。如果您正苦于以下问题:PHP dbeav_model::count方法的具体用法?PHP dbeav_model::count怎么用?PHP dbeav_model::count使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dbeav_model
的用法示例。
在下文中一共展示了dbeav_model::count方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
/**
* 记录数.
*/
public function count($filter = null)
{
if ($filter['node_id'] > 0) {
$filter['node_id'] = app::get('content')->model('article_nodes')->get_childrens_id($filter['node_id']);
}
return parent::count($filter);
}
示例2: getSpecialList
/**
* 获得专辑列表
*
* @param array $param 参数
* @return array
*/
function getSpecialList($param = array())
{
$list = array();
$filter = $param['filter'];
$fields = $param['fields'] ? $param['fields'] : '*';
$limit = intval($param['limit']);
$limit = $limit > 0 ? $limit : 20;
$page = intval($param['page']);
$page = $page > 0 ? $page : 1;
$offset = ($page - 1) * $limit;
$orderby = $param['orderby'] ? $param['orderby'] : 'addtime DESC';
$count = parent::count($filter);
if ($count) {
$info = parent::getList($fields, $filter, $offset, $limit, $orderby);
}
$platform = $param['platform'] ? $param['platform'] : 'wap';
// 获得商品列表
if ($info) {
$list['total_results'] = $count;
foreach ($info as $k => $v) {
$param = array('special_id' => $v['special_id'], 'limit' => 4, 'platform' => $platform);
$list['list'][] = $this->getSpecialInfo($param, 2);
}
}
return $list;
}
示例3: count
function count($filter = array())
{
if ($this->type == 'msgtoadmin') {
$this->type = 'msg';
$this->falg = 'msgtoadmin';
$filter['to_id'] = 1;
}
if ($this->type) {
$filter['object_type'] = $this->type;
}
if ($filter['for_comment_id'] === 'all') {
unset($filter['for_comment_id']);
} else {
$filter['for_comment_id'] = $filter['for_comment_id'] ? $filter['for_comment_id'] : 0;
}
return parent::count($filter);
}
示例4:
function check_tag($item)
{
return parent::count(array('tag_name' => $item['tag_name'], 'tag_type' => $item['tag_type'], 'app_id' => $item['app_id']));
}
示例5: array
function get_subcat_count($cat_id)
{
$filter = array('parent_id' => $cat_id);
return parent::count($filter);
}
示例6: count
public function count($filter = array())
{
if ($tmp['member_id'] == '-1') {
$arr = $_SESSION['b2c_cart_objects'][$tmp['member_ident']];
$arr = $this->filter_getlist($arr, $filter);
} else {
if ($this->use_kv()) {
//使用kv
$this->kv_instance()->fetch($this->kv_prefix, $arr);
$arr = $this->filter_getlist($arr, $filter);
} else {
//使用database
return parent::count($filter);
}
}
return $arr ? count($arr) : 0;
}
示例7: pcount
public function pcount($filter = array())
{
return parent::count($filter);
}
示例8:
function parent_count($filter = null)
{
return parent::count($filter);
}