classes/phing/util/DirectoryScanner.php
protected function isSelected($name, $file)
    {
        if ($this->selectorsList !== null) {
            $basedir = new PhingFile($this->basedir);
            $file = new PhingFile($file);
            if (!$file->canRead()) {
                return false;
            }

            foreach ($this->selectorsList as $selector) {
                if (!$selector->isSelected($basedir, $name, $file)) {
                    return false;
                }
            }
        }

        return true;
    }
protected function isSelected($name, $file)
    {
        if ($this->selectorsList !== null) {
            $basedir = new PhingFile($this->basedir);
            $file = new PhingFile($file);
            if (!$file->canRead()) {
                return false;
            }

            foreach ($this->selectorsList as $selector) {
                if (!$selector->isSelected($basedir, $name, $file)) {
                    return false;
                }
            }
        }

        return true;
    }
protected function isSelected ( $ name , $ file ) { if ( $ this -> selectorsList !== null ) { $ basedir = new PhingFile ( $ this -> basedir ) ; $ file = new PhingFile ( $ file ) ; if ( ! $ file -> canRead ( ) ) { return false ; } foreach ( $ this -> selectorsList as $ selector ) { if ( ! $ selector -> isSelected ( $ basedir , $ name , $ file ) ) { return false ; } } } return true ; }
Tests whether a name should be selected.

@param  string $name The filename to check for selecting.
@param  string $file The full file path.
@return boolean False when the selectors says that the file
should not be selected, True otherwise.
@throws \BuildException
@throws \IOException
@throws NullPointerException
Tests whether a name should be selected .