Beispiel #1
0
 /**
  * Appends an anchor if present within the url representation applied to a LinkScheme
  * implementation.
  *
  * @param string $urlString The url constructed by the given url representation.
  * @param Url $url The current url representation potentially including the anchor.
  *
  * @return string The final url.
  *
  * @author Christian Achatz
  * @version
  * Version 0.1, 05.11.2013<br />
  */
 protected function appendAnchor($urlString, Url $url)
 {
     // append anchor only if desired
     $anchor = $url->getAnchor();
     if (!empty($anchor)) {
         $urlString .= '#' . $anchor;
     }
     return $urlString;
 }