public function setFollowMode($follow_mode)
  {
    // Check mode
    if (!preg_match("/^[0-3]{1}$/", $follow_mode)) return false;
    
    $this->UrlFilter->general_follow_mode = $follow_mode;
    return true;
  }
public function setFollowMode($follow_mode)
  {
    // Check mode
    if (!preg_match("/^[0-3]{1}$/", $follow_mode)) return false;
    
    $this->UrlFilter->general_follow_mode = $follow_mode;
    return true;
  }
public function setFollowMode ( $ follow_mode ) { // Check mode
 if ( ! preg_match ( "/^[0-3]{1}$/" , $ follow_mode ) ) return false ; $ this -> UrlFilter -> general_follow_mode = $ follow_mode ; return true ; }
Sets the basic follow-mode of the crawler.

The following list explains the supported follow-modes:

<b>0 - The crawler will follow EVERY link, even if the link leads to a different host or domain.</b>
If you choose this mode, you really should set a limit to the crawling-process (see limit-options),
otherwise the crawler maybe will crawl the whole WWW!

<b>1 - The crawler only follow links that lead to the same domain like the one in the root-url.</b>
E.g. if the root-url (setURL()) is "http://www.foo.com", the crawler will follow links to "http://www.foo.com/..."
and "http://bar.foo.com/...", but not to "http://www.another-domain.com/...".

<b>2 - The crawler will only follow links that lead to the same host like the one in the root-url.</b>
E.g. if the root-url (setURL()) is "http://www.foo.com", the crawler will ONLY follow links to "http://www.foo.com/...", but not
to "http://bar.foo.com/..." and "http://www.another-domain.com/...". <b>This is the default mode.</b>

<b>3 - The crawler only follows links to pages or files located in or under the same path like the one of the root-url.</b>
E.g. if the root-url is "http://www.foo.com/bar/index.html", the crawler will follow links to "http://www.foo.com/bar/page.html" and
"http://www.foo.com/bar/path/index.html", but not links to "http://www.foo.com/page.html".

@param int $follow_mode The basic follow-mode for the crawling-process (0, 1, 2 or 3).
@return bool

@section 1 Basic settings
Sets the basic follow - mode of the crawler .