page.php
protected function linkIsAbsolute($url)
    {
        $parsed = new SimpleUrl($url);

        return (boolean) ($parsed->getScheme() && $parsed->getHost());
    }
protected function linkIsAbsolute($url)
    {
        $parsed = new SimpleUrl($url);

        return (boolean) ($parsed->getScheme() && $parsed->getHost());
    }
Test to see if link is an absolute one.

@param string $url     Url to test.

@return bool        True if absolute.