public function isExternal()
    {
        $parentLink = $this->parentLink;
        if($parentLink===null){ //parentLink is null in case of baseUrl
            return false;
        }
                    
        $isExternal = $this->getHost() !== "" && 
                    ($this->getHost() != $parentLink->getHost());
        
        return $isExternal;
    }
public function isExternal()
    {
        $parentLink = $this->parentLink;
        if($parentLink===null){ //parentLink is null in case of baseUrl
            return false;
        }
                    
        $isExternal = $this->getHost() !== "" && 
                    ($this->getHost() != $parentLink->getHost());
        
        return $isExternal;
    }
public function isExternal ( ) { $ parentLink = $ this -> parentLink ; if ( $ parentLink === null ) { //parentLink is null in case of baseUrl return false ; } $ isExternal = $ this -> getHost ( ) !== "" && ( $ this -> getHost ( ) != $ parentLink -> getHost ( ) ) ; return $ isExternal ; }
Is URL external?
@param bool $localFile is the link from local file?
@return bool
Is URL external?