统计当前查询返回数据
int Driver_Database_Driver_Mongo_Result::total_count( )
int
protected function total_count()
{
if ($this->_result instanceof ArrayIterator)
{
$count = $this->_result->count();
}
else
{
$count = $this->_result->count(true);
}
if (!$count>0)$count = 0;
return $count;
}