private function buildFilters()
    {
        $filters = array();

        // file only ? or direcotry only ?
        if ($this->file_only) $filters[] = new Filter\FileOnlyFilter();
        if ($this->directory_only) $filters[] = new Filter\DirectoryOnlyFilter();

        // name match ?
        foreach ($this->names as $name) {
            $filters[] = new Filter\NameFilter($name);
        }

        return $filters;
    }
private function buildFilters()
    {
        $filters = array();

        // file only ? or direcotry only ?
        if ($this->file_only) $filters[] = new Filter\FileOnlyFilter();
        if ($this->directory_only) $filters[] = new Filter\DirectoryOnlyFilter();

        // name match ?
        foreach ($this->names as $name) {
            $filters[] = new Filter\NameFilter($name);
        }

        return $filters;
    }
private function buildFilters ( ) { $ filters = array ( ) ; // file only ? or direcotry only ? if ( $ this -> file_only ) $ filters [ ] = new Filter \ FileOnlyFilter ( ) ; if ( $ this -> directory_only ) $ filters [ ] = new Filter \ DirectoryOnlyFilter ( ) ; // name match ? foreach ( $ this -> names as $ name ) { $ filters [ ] = new Filter \ NameFilter ( $ name ) ; } return $ filters ; }
build filters for validate.

@return  array
build filters for validate .