public function isCrawlable()
    {
        if (empty($this->getPath()) === true && 
                ($this->parentLink && empty($this->parentLink->getPath()))) {
            return false;
        }

        $stop_links = array(
            '@^javascript\:.*$@i',           
            '@^mailto\:.*@i',
            '@^tel\:.*@i',
            '@^skype\:.*@i',
            '@^fax\:.*@i',            
        );

        foreach ($stop_links as $ptrn) {
            if (preg_match($ptrn, $this->getOriginalUrl()) === 1) {                
                return false;
            }
        }
        
        return true;
    }
public function isCrawlable()
    {
        if (empty($this->getPath()) === true && 
                ($this->parentLink && empty($this->parentLink->getPath()))) {
            return false;
        }

        $stop_links = array(
            '@^javascript\:.*$@i',           
            '@^mailto\:.*@i',
            '@^tel\:.*@i',
            '@^skype\:.*@i',
            '@^fax\:.*@i',            
        );

        foreach ($stop_links as $ptrn) {
            if (preg_match($ptrn, $this->getOriginalUrl()) === 1) {                
                return false;
            }
        }
        
        return true;
    }
public function isCrawlable ( ) { if ( empty ( $ this -> getPath ( ) ) === true && ( $ this -> parentLink && empty ( $ this -> parentLink -> getPath ( ) ) ) ) { return false ; } $ stop_links = array ( '@^javascript\:.*$@i' , '@^mailto\:.*@i' , '@^tel\:.*@i' , '@^skype\:.*@i' , '@^fax\:.*@i' , ) ; foreach ( $ stop_links as $ ptrn ) { if ( preg_match ( $ ptrn , $ this -> getOriginalUrl ( ) ) === 1 ) { return false ; } } return true ; }
Is a given URL crawlable?
@param  string $url
@return bool
Is a given URL crawlable?