original_string: public function paging($records, $pageURL, $start = 0, $maxshown = 50, $numpagesshown = 11, $arrows = true, $additional = array()) {
          self::$pageURL = $pageURL;
          $this->queryString = $additional;
          if ($records > $maxshown) {
              self::$current = $start >= 1 ? intval($start) : 1;
              self::$totalPages = ceil(intval($records) / ($maxshown >= 1 ? intval($maxshown) : 1));
              self::$lastpage = self::$totalPages;
              $this->getPage($records, $maxshown, $numpagesshown);
              
              $paging = '<ul class="'.$this->getPaginationClass().'">'.$this->preLinks($arrows);
              while (self::$page <= self::$lastpage) {
                  $paging .= $this->buildLink(self::$page, self::$page, (self::$current == self::$page));
                  self::$page = (self::$page + 1);
              }
              return $paging.$this->postLinks($arrows).'</ul>';
          }
          return false;
      }
code: public function paging($records, $pageURL, $start = 0, $maxshown = 50, $numpagesshown = 11, $arrows = true, $additional = array()) {
          self::$pageURL = $pageURL;
          $this->queryString = $additional;
          if ($records > $maxshown) {
              self::$current = $start >= 1 ? intval($start) : 1;
              self::$totalPages = ceil(intval($records) / ($maxshown >= 1 ? intval($maxshown) : 1));
              self::$lastpage = self::$totalPages;
              $this->getPage($records, $maxshown, $numpagesshown);
              
              $paging = '<ul class="'.$this->getPaginationClass().'">'.$this->preLinks($arrows);
              while (self::$page <= self::$lastpage) {
                  $paging .= $this->buildLink(self::$page, self::$page, (self::$current == self::$page));
                  self::$page = (self::$page + 1);
              }
              return $paging.$this->postLinks($arrows).'</ul>';
          }
          return false;
      }
code_tokens: public function paging ( $ records , $ pageURL , $ start = 0 , $ maxshown = 50 , $ numpagesshown = 11 , $ arrows = true , $ additional = array ( ) ) { self :: $ pageURL = $ pageURL ; $ this -> queryString = $ additional ; if ( $ records > $ maxshown ) { self :: $ current = $ start >= 1 ? intval ( $ start ) : 1 ; self :: $ totalPages = ceil ( intval ( $ records ) / ( $ maxshown >= 1 ? intval ( $ maxshown ) : 1 ) ) ; self :: $ lastpage = self :: $ totalPages ; $ this -> getPage ( $ records , $ maxshown , $ numpagesshown ) ; $ paging = '<ul class="' . $ this -> getPaginationClass ( ) . '">' . $ this -> preLinks ( $ arrows ) ; while ( self :: $ page <= self :: $ lastpage ) { $ paging .= $ this -> buildLink ( self :: $ page , self :: $ page , ( self :: $ current == self :: $ page ) ) ; self :: $ page = ( self :: $ page + 1 ) ; } return $ paging . $ this -> postLinks ( $ arrows ) . '</ul>' ; } return false ; }
docstring: Returns paging buttons for the number of records
  @param int $records The total number of records
  @param string $pageURL The URL of the page you are creating the paging for
  @param int $start The start number for the results
  @param int $maxshown The number of records that are shown on each page
  @param int $numpagesshown The number of pagination buttons to display
  @param boolean $arrows If you want arrows to display before and after for next and previous set to true (default) else set to false
  @param array $additional Any additional get values to include in the URL
  @return string|false Returns the pagination menu if required else will return false
docstring_tokens: Returns paging buttons for the number of records