classes/phing/tasks/ext/hg/HgAddTask.php
public function fileIsIgnored($file)
    {
        $line = $this->ignoreFile[0];
        $mode = 'regexp';
        $ignored = false;
        if (preg_match('#^syntax\s*:\s*(glob|regexp)$#', $line, $matches)
            || $matches[1] === 'glob'
        ) {
            $mode = 'glob';
        }
        if ($mode === 'glob') {
            $ignored = $this->ignoredByGlob($file);
        } elseif ($mode === 'regexp') {
            $ignored = $this->ignoredByRegex($file);
        }
        return $ignored;
    }
public function fileIsIgnored($file)
    {
        $line = $this->ignoreFile[0];
        $mode = 'regexp';
        $ignored = false;
        if (preg_match('#^syntax\s*:\s*(glob|regexp)$#', $line, $matches)
            || $matches[1] === 'glob'
        ) {
            $mode = 'glob';
        }
        if ($mode === 'glob') {
            $ignored = $this->ignoredByGlob($file);
        } elseif ($mode === 'regexp') {
            $ignored = $this->ignoredByRegex($file);
        }
        return $ignored;
    }
public function fileIsIgnored ( $ file ) { $ line = $ this -> ignoreFile [ 0 ] ; $ mode = 'regexp' ; $ ignored = false ; if ( preg_match ( '#^syntax\s*:\s*(glob|regexp)$#' , $ line , $ matches ) || $ matches [ 1 ] === 'glob' ) { $ mode = 'glob' ; } if ( $ mode === 'glob' ) { $ ignored = $ this -> ignoredByGlob ( $ file ) ; } elseif ( $ mode === 'regexp' ) { $ ignored = $ this -> ignoredByRegex ( $ file ) ; } return $ ignored ; }
Determine if a file is to be ignored.

@param string $file filename

@return bool
Determine if a file is to be ignored .