diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-16 17:00:08 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-16 17:00:08 +0200 |
commit | 7644950b48b094bfe5675348aefb7cf5747d325b (patch) | |
tree | a1792e21239a86f471da99b454134a5d8533ef77 /lib/public/files.php | |
parent | 8653da6c16597959c7bd0f0b202747ff96204575 (diff) | |
download | nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.tar.gz nextcloud-server-7644950b48b094bfe5675348aefb7cf5747d325b.zip |
Add @since tags to all methods in public namespace
* enhance the app development experience - you can look up the
method introduction right inside the code without searching
via git blame
* easier to write apps for multiple versions
Diffstat (limited to 'lib/public/files.php')
-rw-r--r-- | lib/public/files.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/files.php b/lib/public/files.php index e6910e8799b..57747a4c354 100644 --- a/lib/public/files.php +++ b/lib/public/files.php @@ -40,11 +40,13 @@ namespace OCP; /** * This class provides access to the internal filesystem abstraction layer. Use * this class exlusively if you want to access files + * @since 5.0.0 */ class Files { /** * Recusive deletion of folders * @return bool + * @since 5.0.0 */ static function rmdirr( $dir ) { return \OC_Helper::rmdirr( $dir ); @@ -55,6 +57,7 @@ class Files { * @param string $path * @return string * does NOT work for ownClouds filesystem, use OC_FileSystem::getMimeType instead + * @since 5.0.0 */ static function getMimeType( $path ) { return(\OC_Helper::getMimeType( $path )); @@ -64,6 +67,7 @@ class Files { * Search for files by mimetype * @param string $mimetype * @return array + * @since 6.0.0 */ static public function searchByMime( $mimetype ) { return(\OC\Files\Filesystem::searchByMime( $mimetype )); @@ -74,6 +78,7 @@ class Files { * @param resource $source * @param resource $target * @return int the number of bytes copied + * @since 5.0.0 */ public static function streamCopy( $source, $target ) { list($count, $result) = \OC_Helper::streamCopy( $source, $target ); @@ -86,6 +91,7 @@ class Files { * @return string * * temporary files are automatically cleaned up after the script is finished + * @since 5.0.0 */ public static function tmpFile( $postfix='' ) { return(\OC_Helper::tmpFile( $postfix )); @@ -96,6 +102,7 @@ class Files { * @return string * * temporary files are automatically cleaned up after the script is finished + * @since 5.0.0 */ public static function tmpFolder() { return(\OC_Helper::tmpFolder()); @@ -106,6 +113,7 @@ class Files { * @param string $path * @param string $filename * @return string + * @since 5.0.0 */ public static function buildNotExistingFileName( $path, $filename ) { return(\OC_Helper::buildNotExistingFileName( $path, $filename )); @@ -116,6 +124,7 @@ class Files { * existant * @param string $app * @return \OC\Files\View + * @since 5.0.0 */ public static function getStorage( $app ) { return \OC_App::getStorage( $app ); |