Преглед изворни кода

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 :-)

tags/v6.0.0alpha2
Frank Karlitschek пре 11 година
родитељ
комит
3cb016d478
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10
    0
      lib/public/files.php

+ 10
- 0
lib/public/files.php Прегледај датотеку

@@ -55,6 +55,16 @@ class Files {
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
* @param resource source

Loading…
Откажи
Сачувај