classes/phing/util/DirectoryScanner.php
protected function isExcluded($_name)
    {
        for ($i = 0, $excludesCount = count($this->excludes); $i < $excludesCount; $i++) {
            if ($this->matchPath($this->excludes[$i], $_name, $this->isCaseSensitive)) {
                return true;
            }
        }

        return false;
    }
protected function isExcluded($_name)
    {
        for ($i = 0, $excludesCount = count($this->excludes); $i < $excludesCount; $i++) {
            if ($this->matchPath($this->excludes[$i], $_name, $this->isCaseSensitive)) {
                return true;
            }
        }

        return false;
    }
protected function isExcluded ( $ _name ) { for ( $ i = 0 , $ excludesCount = count ( $ this -> excludes ) ; $ i < $ excludesCount ; $ i ++ ) { if ( $ this -> matchPath ( $ this -> excludes [ $ i ] , $ _name , $ this -> isCaseSensitive ) ) { return true ; } } return false ; }
Tests whether a name matches against at least one exclude pattern.

@param  string $_name the name to match
@return bool <code>true</code> when the name matches against at least one
exclude pattern, <code>false</code> otherwise.
Tests whether a name matches against at least one exclude pattern .