/** * 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. */ protected function isExcluded($_name) { for ($i = 0; $i < count($this->excludes); $i++) { if (DirectoryScanner::matchPath($this->excludes[$i], $_name, $this->isCaseSensitive)) { return true; } } return false; }