public function getPaginationCount()
	{
		list($orders, $this->orders) = array($this->orders, null);

		$columns = $this->columns;

		// Because some database engines may throw errors if we leave the ordering
		// statements on the query, we will "back them up" and remove them from
		// the query. Once we have the count we will put them back onto this.
		$total = $this->count();

		$this->orders = $orders;

		// Once the query is run we need to put the old select columns back on the
		// instance so that the select query will run properly. Otherwise, they
		// will be cleared, then the query will fire with all of the columns.
		$this->columns = $columns;

		return $total;
	}
public function getPaginationCount()
	{
		list($orders, $this->orders) = array($this->orders, null);

		$columns = $this->columns;

		// Because some database engines may throw errors if we leave the ordering
		// statements on the query, we will "back them up" and remove them from
		// the query. Once we have the count we will put them back onto this.
		$total = $this->count();

		$this->orders = $orders;

		// Once the query is run we need to put the old select columns back on the
		// instance so that the select query will run properly. Otherwise, they
		// will be cleared, then the query will fire with all of the columns.
		$this->columns = $columns;

		return $total;
	}
public function getPaginationCount ( ) { list ( $ orders , $ this -> orders ) = array ( $ this -> orders , null ) ; $ columns = $ this -> columns ; // Because some database engines may throw errors if we leave the ordering // statements on the query, we will "back them up" and remove them from // the query. Once we have the count we will put them back onto this. $ total = $ this -> count ( ) ; $ this -> orders = $ orders ; // Once the query is run we need to put the old select columns back on the // instance so that the select query will run properly. Otherwise, they // will be cleared, then the query will fire with all of the columns. $ this -> columns = $ columns ; return $ total ; }
Get the count of the total records for pagination.

@return int
Get the count of the total records for pagination .