]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update documentation for unshareFromMySelf()
authorMichael Gapczynski <GapczynskiM@gmail.com>
Mon, 22 Aug 2011 15:31:47 +0000 (11:31 -0400)
committerMichael Gapczynski <GapczynskiM@gmail.com>
Mon, 22 Aug 2011 15:31:47 +0000 (11:31 -0400)
apps/files_sharing/lib_share.php

index df704c131e720bce5a9cd1e4248bc27fa153756a..0c9528141ffbb05fa90b8d3cb139b51d55b74593 100644 (file)
@@ -360,9 +360,10 @@ class OC_Share {
        /**
        * Unshare the item from the current user, removes it only from the database and doesn't touch the source file
        *
-       * You must use the pullOutOfFolder() function to unshare a file inside a shared folder and set $newTarget to nothing
+       * You must use the pullOutOfFolder() function before you call unshareFromMySelf() and set the delete parameter to false to unshare from self a file inside a shared folder
        *
        * @param $target The target location of the item
+       * @param $delete (Optional) If true delete the entry from the database, if false the permission is set to UNSHARED
        */
        public static function unshareFromMySelf($target, $delete = true) {
                $target = self::cleanPath($target);