Example #1
0
	public function paginationQuery($query){
		$items 										=	self::getItems();
		$pagination_array							=	array();
		$pagination 								= 	new MyPagina ();
		$pagination->sql 							= 	$query ;
	    $pagination->rows_on_page					=	$items;
	    $pagination_array['max_page']	 			=	$pagination->get_num_pages();
		$pagination_array['result']					=	$pagination->get_page_result();
		$pagination_array['num_rows']				=	$pagination->get_page_num_rows();
		$pagination_array['PAGINATION_LINKS']		=	$pagination->navigation(" | ", " | ");
		$pagination_array['PAGINATION_INFO']		=	$pagination->page_info();
		$pagination_array['PAGINATION_TOTALRECS']	=	$pagination->get_total_rows();

		return $pagination_array;
	}