本文整理汇总了PHP中EEM_Base::count方法的典型用法代码示例。如果您正苦于以下问题:PHP EEM_Base::count方法的具体用法?PHP EEM_Base::count怎么用?PHP EEM_Base::count使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EEM_Base
的用法示例。
在下文中一共展示了EEM_Base::count方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count_deleted_and_undeleted
/**
* Counts all deleeted and undeleted items
* @param array $query_params like EEM_Base::get_all
* @param string $field_to_count
* @param bool $distinct if we want to only count the distinct values for the column then you can trigger that by the setting $distinct to TRUE;
* @return int
*/
public function count_deleted_and_undeleted($query_params = null, $field_to_count = null, $distinct = FALSE)
{
$query_params = $this->_alter_query_params_so_deleted_and_undeleted_items_included($query_params);
return parent::count($query_params, $field_to_count, $distinct);
}