public function searchDir($type, $directory = '')
    {
        $dirs = $this->search($type, $directory, 'path');
        $files = array();
        foreach ($dirs as $dir) {
            $this->_searchDirFiles($dir, $files);
        }

        return $files;
    }
public function searchDir($type, $directory = '')
    {
        $dirs = $this->search($type, $directory, 'path');
        $files = array();
        foreach ($dirs as $dir) {
            $this->_searchDirFiles($dir, $files);
        }

        return $files;
    }
public function searchDir ( $ type , $ directory = '' ) { $ dirs = $ this -> search ( $ type , $ directory , 'path' ) ; $ files = array ( ) ; foreach ( $ dirs as $ dir ) { $ this -> _searchDirFiles ( $ dir , $ files ) ; } return $ files ; }
Specify type and directory and it will return array of all files
of a matching type inside that directory. This will work even
if specified directory exists inside multiple locations.
Specify type and directory and it will return array of all files of a matching type inside that directory . This will work even if specified directory exists inside multiple locations .