classes/Pagination.php
public function setMaxPages( $max_num_pages )
	{
		if ( !is_int( $max_num_pages ) )
		{
			trigger_error( 'Pagination setMaxPages:  Maxim number of pages must be an integer.' );
			return false;
		}

		if ( $max_num_pages <= 0 )
		{
			trigger_error( 'Pagination setMaxPages:  Maxim number of pages must be a positive integer.' );
			return false;
		}

		$this->max_num_pages = $max_num_pages;
	}
public function setMaxPages( $max_num_pages )
	{
		if ( !is_int( $max_num_pages ) )
		{
			trigger_error( 'Pagination setMaxPages:  Maxim number of pages must be an integer.' );
			return false;
		}

		if ( $max_num_pages <= 0 )
		{
			trigger_error( 'Pagination setMaxPages:  Maxim number of pages must be a positive integer.' );
			return false;
		}

		$this->max_num_pages = $max_num_pages;
	}
public function setMaxPages ( $ max_num_pages ) { if ( ! is_int ( $ max_num_pages ) ) { trigger_error ( 'Pagination setMaxPages:  Maxim number of pages must be an integer.' ) ; return false ; } if ( $ max_num_pages <= 0 ) { trigger_error ( 'Pagination setMaxPages:  Maxim number of pages must be a positive integer.' ) ; return false ; } $ this -> max_num_pages = $ max_num_pages ; }
Set maxim number of pages to show.

@param integer $max_num_pages Maxim number of pages.
Set maxim number of pages to show .