add a searchbymime to the public api. Please all remember that access to internal oc classes will be disabled for all app for ownCloud 6. So please port yur stuff to the public api :-)

This commit is contained in:
Frank Karlitschek 2013-03-19 14:27:02 +01:00
parent e8100dc1a8
commit 3cb016d478
1 changed files with 10 additions and 0 deletions

View File

@ -55,6 +55,16 @@ class Files {
return(\OC_Helper::getMimeType( $path )); return(\OC_Helper::getMimeType( $path ));
} }
/**
* search for files by mimetype
*
* @param string $query
* @return array
*/
public function searchByMime($mimetype) {
return(\OC\Files\Filesystem::searchByMime( $mimetype ));
}
/** /**
* copy the contents of one stream to another * copy the contents of one stream to another
* @param resource source * @param resource source