framework/web/CActiveDataProvider.php
protected function calculateTotalItemCount()
	{
		$baseCriteria=$this->model->getDbCriteria(false);
		if($baseCriteria!==null)
			$baseCriteria=clone $baseCriteria;
		$count=$this->model->count($this->getCountCriteria());
		$this->model->setDbCriteria($baseCriteria);
		return $count;
	}
protected function calculateTotalItemCount()
	{
		$baseCriteria=$this->model->getDbCriteria(false);
		if($baseCriteria!==null)
			$baseCriteria=clone $baseCriteria;
		$count=$this->model->count($this->getCountCriteria());
		$this->model->setDbCriteria($baseCriteria);
		return $count;
	}
protected function calculateTotalItemCount ( ) { $ baseCriteria = $ this -> model -> getDbCriteria ( false ) ; if ( $ baseCriteria !== null ) $ baseCriteria = clone $ baseCriteria ; $ count = $ this -> model -> count ( $ this -> getCountCriteria ( ) ) ; $ this -> model -> setDbCriteria ( $ baseCriteria ) ; return $ count ; }
Calculates the total number of data items.
@return integer the total number of data items.
Calculates the total number of data items .