public function buildRawPaginator($paginator, $results, $perPage)
	{
		// For queries which have a group by, we will actually retrieve the entire set
		// of rows from the table and "slice" them via PHP. This is inefficient and
		// the developer must be aware of this behavior; however, it's an option.
		$start = ($paginator->getCurrentPage() - 1) * $perPage;

		$sliced = array_slice($results, $start, $perPage);

		return $paginator->make($sliced, count($results), $perPage);
	}
public function buildRawPaginator($paginator, $results, $perPage)
	{
		// For queries which have a group by, we will actually retrieve the entire set
		// of rows from the table and "slice" them via PHP. This is inefficient and
		// the developer must be aware of this behavior; however, it's an option.
		$start = ($paginator->getCurrentPage() - 1) * $perPage;

		$sliced = array_slice($results, $start, $perPage);

		return $paginator->make($sliced, count($results), $perPage);
	}
public function buildRawPaginator ( $ paginator , $ results , $ perPage ) { // For queries which have a group by, we will actually retrieve the entire set // of rows from the table and "slice" them via PHP. This is inefficient and // the developer must be aware of this behavior; however, it's an option. $ start = ( $ paginator -> getCurrentPage ( ) - 1 ) * $ perPage ; $ sliced = array_slice ( $ results , $ start , $ perPage ) ; return $ paginator -> make ( $ sliced , count ( $ results ) , $ perPage ) ; }
Build a paginator instance from a raw result array.

@param  \Fly\Pagination\Environment  $paginator
@param  array  $results
@param  int    $perPage
@return \Fly\Pagination\Paginator
Build a paginator instance from a raw result array .