summaryrefslogtreecommitdiffstats
path: root/lib/private/Share
Commit message (Collapse)AuthorAgeFilesLines
* Fix the typo in commentsCRA Yoshihito Nakatani2023-03-151-1/+1
|
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-0/+2
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* composer run cs:fixCôme Chilliet2023-01-203-9/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Cleanup tags and Share componentCarl Schwan2022-09-291-171/+234
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in lib/private subdirectoryluz paz2022-07-272-3/+3
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Remove unused class SearchResultSorterCôme Chilliet2022-04-261-77/+0
| | | | | | Was used in ajax/share.php which does not exists anymore Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate more classes of lib/private to LoggerInterfaceCôme Chilliet2022-04-261-10/+12
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Limit more contact searchesJoas Schilling2021-12-081-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-044-6/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Drop \OCP\UserChristoph Wurst2021-05-211-1/+1
| | | | | | Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22916 from J0WI/unifiy-links-to-php.netRoeland Jago Douma2020-12-221-1/+1
|\ | | | | Unify links to php.net
| * Unify links to php.netJ0WI2020-09-171-1/+1
| | | | | | | | | | | | Update all links to https://www.php.net/ Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-163-7/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Address minor commentsJulius Härtl2020-12-091-1/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Let sharees endpoint properly handle deck sharesJulius Härtl2020-12-091-0/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Replace static call to Share::unshare with ShareManager->deleteShare in testsMorris Jobke2020-11-302-242/+0
| | | | | | | | | | | | And then cleanup all the code that is dead then... Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove now unused methods in Share.php due to the reduced code complexity in ↵Morris Jobke2020-11-291-36/+0
| | | | | | | | | | | | Share::getItems Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove unused method Share Helper::generateTargetMorris Jobke2020-11-291-41/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Reduce code complexity in Share::getItems by tracing all remaining callersMorris Jobke2020-11-291-59/+20
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove unused Share::getItemSharedWithBySource()Morris Jobke2020-11-291-17/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Don't leave cursors open when tests failJoas Schilling2020-11-091-3/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Replace some usages of OC_DB in OC\Share\* with query builderJoas Schilling2020-11-062-29/+39
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-051-8/+8
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Cascading effect - more code that now is not used anymoreMorris Jobke2020-07-061-338/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Tags.php and the old sharing mechanismMorris Jobke2020-07-061-54/+0
| | | | | | The old sharing mechanism isn't working anymore, because it was replaced by Share 2.0. Also it was nowhere used so this removes the code paths and reduces complexity. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update share type constant usageJoas Schilling2020-06-242-25/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-3/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-15/+15
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-34/+17
| | | | | | | | | | | | | | | 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-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-314-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-264-57/+57
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-054-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* Cleanup sharing leftoversJohn Molakvoæ (skjnldsv)2019-11-051-3/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make the sharing constants publicly availableJoas Schilling2019-08-231-0/+29
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unused OC\Share\Share::checkPasswordProtectedShareMorris Jobke2019-07-291-29/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Deprecate legacy share code and cleanup some unused methodsMorris Jobke2019-04-181-74/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup legacy Share.php from unused codeMorris Jobke2019-04-171-504/+47
| | | | | | * the code was only used by tests and thus this reduces the code to the used paths and removes the branches that wouldn't be used anyway to reduce complexity and gain some overview while working towards completely removing this class Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move merged-share-backend to webpackRoeland Jago Douma2019-01-161-1/+1
| | | | | | | | | | | | | For #13608 Since we have webpack anyway it make sense to let webpack do the bundling instead of ourselfs. This leads to minified code (so less transfer). And the webserver can just handle the request. As a bonus we get a map file so debugging is easier than with our JSCombiner stuff. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup some unused sharing methods from the old sharing codeMorris Jobke2018-11-021-19/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-27/+27
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add comment with IDs of internal share typesDaniel Calviño Sánchez2018-08-081-0/+2
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>