original_string: protected function buildLink($link, $page, $current = false) {
          return '<li'.(!empty($this->getLiClass()) || ($current === true && !empty($this->getLiActiveClass())) ? ' class="'.trim($this->getLiClass().(($current === true && !empty($this->getLiActiveClass())) ? ' '.$this->getLiActiveClass() : '').'"') : '').'><a href="'.self::$pageURL.(!empty($this->buildQueryString($link)) ? '?'.$this->buildQueryString($link) : '').'" title="Page '.$page.'"'.(!empty($this->getAClass()) || ($current === true && !empty($this->getAActiveClass())) ? ' class="'.trim($this->getAClass().(($current === true && !empty($this->getAActiveClass())) ? ' '.$this->getAActiveClass() : '')).'"' : '').'>'.$page.'</a></li>';
      }
code: protected function buildLink($link, $page, $current = false) {
          return '<li'.(!empty($this->getLiClass()) || ($current === true && !empty($this->getLiActiveClass())) ? ' class="'.trim($this->getLiClass().(($current === true && !empty($this->getLiActiveClass())) ? ' '.$this->getLiActiveClass() : '').'"') : '').'><a href="'.self::$pageURL.(!empty($this->buildQueryString($link)) ? '?'.$this->buildQueryString($link) : '').'" title="Page '.$page.'"'.(!empty($this->getAClass()) || ($current === true && !empty($this->getAActiveClass())) ? ' class="'.trim($this->getAClass().(($current === true && !empty($this->getAActiveClass())) ? ' '.$this->getAActiveClass() : '')).'"' : '').'>'.$page.'</a></li>';
      }
code_tokens: protected function buildLink ( $ link , $ page , $ current = false ) { return '<li' . ( ! empty ( $ this -> getLiClass ( ) ) || ( $ current === true && ! empty ( $ this -> getLiActiveClass ( ) ) ) ? ' class="' . trim ( $ this -> getLiClass ( ) . ( ( $ current === true && ! empty ( $ this -> getLiActiveClass ( ) ) ) ? ' ' . $ this -> getLiActiveClass ( ) : '' ) . '"' ) : '' ) . '><a href="' . self :: $ pageURL . ( ! empty ( $ this -> buildQueryString ( $ link ) ) ? '?' . $ this -> buildQueryString ( $ link ) : '' ) . '" title="Page ' . $ page . '"' . ( ! empty ( $ this -> getAClass ( ) ) || ( $ current === true && ! empty ( $ this -> getAActiveClass ( ) ) ) ? ' class="' . trim ( $ this -> getAClass ( ) . ( ( $ current === true && ! empty ( $ this -> getAActiveClass ( ) ) ) ? ' ' . $ this -> getAActiveClass ( ) : '' ) ) . '"' : '' ) . '>' . $ page . '</a></li>' ; }
docstring: Build a link item with the given values
  @param string $link This should be any additional items to be included as part of the link
  @param mixed $page This should be the link test on the link normally set as numbers but may be anything like arrows or dots etc
  @param boolean $current If this is the current link item set this as true so the class is added to the link item
  @return string This will return the paging item as a string
docstring_tokens: Build a link item with the given values