code: public function getItemsAsArray()
  	{
  		$arrLinks = array();
  
  		$intNumberOfLinks = floor($this->intNumberOfLinks / 2);
  		$intFirstOffset = $this->intPage - $intNumberOfLinks - 1;
  
  		if ($intFirstOffset > 0)
  		{
  			$intFirstOffset = 0;
  		}
  
  		$intLastOffset = $this->intPage + $intNumberOfLinks - $this->intTotalPages;
  
  		if ($intLastOffset < 0)
  		{
  			$intLastOffset = 0;
  		}
  
  		$intFirstLink = $this->intPage - $intNumberOfLinks - $intLastOffset;
  
  		if ($intFirstLink < 1)
  		{
  			$intFirstLink = 1;
  		}
  
  		$intLastLink = $this->intPage + $intNumberOfLinks - $intFirstOffset;
  
  		if ($intLastLink > $this->intTotalPages)
  		{
  			$intLastLink = $this->intTotalPages;
  		}
  
  		for ($i=$intFirstLink; $i<=$intLastLink; $i++)
  		{
  			if ($i == $this->intPage)
  			{
  				$arrLinks[] = array
  				(
  					'page'  => $i,
  					'href'  => null,
  					'title' => null
  				);
  			}
  			else
  			{
  				$arrLinks[] = array
  				(
  					'page'  => $i,
  					'href'  => $this->linkToPage($i),
  					'title' => StringUtil::specialchars(sprintf($GLOBALS['TL_LANG']['MSC']['goToPage'], $i))
  				);
  			}
  		}
  
  		return $arrLinks;
  	}
docs: Generate all page links and return them as array
  
  @return array The page links as array