Add mimetype filter to getDirectoryContent function

This commit is contained in:
Bart Visscher 2013-04-08 22:40:03 +02:00
parent ccde0212b1
commit a07a8794b8
2 changed files with 4 additions and 2 deletions

View File

@ -621,10 +621,11 @@ class Filesystem {
* get the content of a directory
*
* @param string $directory path under datadirectory
* @param string $mimetype_filter limit returned content to this mimetype or mimepart
* @return array
*/
public static function getDirectoryContent($directory) {
return self::$defaultInstance->getDirectoryContent($directory);
public static function getDirectoryContent($directory, $mimetype_filter = '') {
return self::$defaultInstance->getDirectoryContent($directory, $mimetype_filter);
}
/**

View File

@ -731,6 +731,7 @@ class View {
* get the content of a directory
*
* @param string $directory path under datadirectory
* @param string $mimetype_filter limit returned content to this mimetype or mimepart
* @return array
*/
public function getDirectoryContent($directory, $mimetype_filter = '') {