aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* Format code according to PSR2Christoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-103-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1013-25/+8
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-102-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-095-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-3/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-276-8/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-256-8/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-262-26/+26
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Trash bin: fix exception triggered if no correct fileId is provided.simonspa2020-01-071-2/+2
| | | | | | This fixes #17115 Signed-off-by: Simon Spannagel <simon.spannagel@cern.ch>
* Update license headersChristoph Wurst2019-12-0534-36/+113
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* respect shareapi_allow_share_dialog_user_enumeration in Principal backend ↵Georg Ehrke2019-12-031-1/+2
| | | | | | for Sabre/DAV Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Some php-cs fixesRoeland Jago Douma2019-11-2212-13/+16
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont expose metadata etag for nowRobin Appelman2019-11-131-4/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose filecache extension data in FileInfoRobin Appelman2019-11-131-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #17509 from nextcloud/fix/application-singletonJohn Molakvoæ2019-11-044-12/+14
|\ | | | | Fix Application instances created multiple times
| * set retention obligation on existing `expiration` in testsRobin Appelman2019-11-043-10/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Do not create Application instances directlyChristoph Wurst2019-10-112-4/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | use OCP\EventDispatcher\Event over Symfony's deprecated EventArthur Schiwon2019-10-171-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow trash backends to overwrite the tooltip for trash itemsRobin Appelman2019-10-055-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #16664 from nextcloud/bugfix/emit-moveToTrash-limitblizzz2019-09-061-7/+12
|\ | | | | Emit moveToTrash event only for the deleting user
| * Use the owner from the storageRoeland Jago Douma2019-08-071-3/+9
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Emit moveToTrash event only for the deleting userJulius Härtl2019-08-061-8/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #16534 from nextcloud/trash-copy-free-spaceRoeland Jago Douma2019-09-041-1/+6
|\ \ | | | | | | dont try to copy trash items to user if the user has not enough free space
| * | Update apps/files_trashbin/lib/Trashbin.phpRobin Appelman2019-09-041-1/+3
| | | | | | | | | Co-Authored-By: Morris Jobke <hey@morrisjobke.de>
| * | dont try to copy trash items to user if the user has not enough free spaceRobin Appelman2019-07-291-1/+4
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #16666 from nextcloud/feature/calendar/delegationRoeland Jago Douma2019-08-151-2/+3
|\ \ | | | | | | Feature/calendar/delegation
| * | Use the proxymapper to obtain valid proxy dataRoeland Jago Douma2019-08-151-2/+3
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / files_trashbin: File can be without extensionJakub Onderka2019-08-071-1/+1
|/ | | | Signed-off-by: Jakub Onderka <jakub.onderka@gmail.com>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use higher preview resolution in trashbinRoeland Jago Douma2019-03-161-2/+2
| | | | | | For #14639 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont try to restore a trashbin item to a readonly targetRobin Appelman2019-03-141-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* prevent recursion when moving a file to the trashbinRobin Appelman2019-03-131-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #6512 from coletivoEITA/add_circles_sharing_to_caldavMorris Jobke2019-03-131-1/+2
|\ | | | | Change CALDAV to allow calendars be shared with circles.
| * Use proper dependency injection for app managerMorris Jobke2019-03-051-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Only fetch size of this storage without mount points - ref #14412Morris Jobke2019-03-011-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Revert "Fix for issue 10862: calculation of free space ignores external ↵Morris Jobke2019-03-011-4/+5
|/ | | | | | | | storage (doesn't count towards quota)" This reverts commit e806aa658c16fadad465504fab4aeef314832bdb. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #14412 from nextcloud/fileinfo-raw-sizeMorris Jobke2019-02-281-3/+3
|\ | | | | add option to get raw size (without submounts) from fileinfo
| * add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-3/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #13844 from ↵Morris Jobke2019-02-271-5/+4
|\ \ | |/ |/| | | | | felixn/bugfix/10862-trash-bin-ignores-trashbin_retention_obligation Bugfix for issue 10862: Trash-bin ignores trashbin_retention_obligation
| * Fix for issue 10862: calculation of free space ignores external storage ↵Felix Nieuwenhuizen2019-01-261-5/+4
| | | | | | | | | | | | (doesn't count towards quota) Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
* | add fallback for trashbin original locationRobin Appelman2019-01-291-1/+5
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add getExtension() to FileInfoRobin Appelman2018-10-291-0/+4
| | | | | | | this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman <robin@icewind.nl>
* store user for trashitem in the trashitemRobin Appelman2018-10-1710-68/+50
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove user parameter from `ITrashItem::getOriginalLocation`Robin Appelman2018-10-173-9/+8
| | | | | | | since the target user is known at the time of creating the trashitem the original location can already be adjusted on a per user level Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix error message for folder preview requestRobin Appelman2018-10-171-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix trashbin previews for modular apiRobin Appelman2018-10-174-40/+78
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>