Beispiel #1
0
 /**
  * Set the link.
  * If the link is an internal link the sites URL will be prepended.
  *
  * @param string $link The link for the item.
  */
 public function setLink($link)
 {
     // redefine var
     $link = (string) $link;
     // if link doesn't start with http, we prepend the URL of the site
     if (mb_substr($link, 0, 7) != 'http://') {
         $link = SITE_URL . $link;
     }
     // call parent
     parent::setLink($link);
 }