nextcloud-server/lib/private
Lukas Reschke 886bda5f81 Refactor OC_Request into TrustedDomainHelper and IRequest
This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed.

This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions.

Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though.

Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969
2015-02-16 22:13:00 +07:00
..
app integrate code checker in the installer 2015-02-11 23:37:51 +07:00
appframework Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
archive
assetic
backgroundjob
cache readd is_file 2015-02-03 10:13:25 +07:00
connector/sabre Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
contacts
db set MySQL autocommit on connection setup 2015-01-19 17:20:49 +07:00
diagnostics
fileproxy
files Dont lower the mtime of a folder when propagating changes 2015-02-13 14:30:05 +07:00
group
hooks
l10n
legacy drop OC_Preferences 2015-02-04 00:06:29 +07:00
log Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
memcache add debug log for memcache instantiation 2015-02-16 18:05:43 +07:00
ocs
preview add config-option for an image's maximum filesize when generating previews 2015-01-22 20:21:37 +07:00
repair
route Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
search Scroll to file in folder, when using "search in other places" link 2015-01-29 12:21:20 +07:00
security Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
session
setup naming fixes while reviewing 2015-01-26 12:59:25 +07:00
share Merge pull request #13979 from owncloud/group-share-collition-wrong-type-in-post-hook 2015-02-11 15:23:13 +07:00
tagging
template
user Throw an exception when login is canceled by an app 2015-01-22 14:13:17 +07:00
vobject
activitymanager.php
allconfig.php Add a method to set/unset multiple config values in one call 2015-01-23 11:00:53 +07:00
api.php
app.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
appconfig.php Cleanup of PHPDoc return types 2015-01-16 20:30:43 +07:00
apphelper.php
archive.php
arrayparser.php
avatar.php Add a better way to check if an avatar exists for the user 2015-02-03 14:54:06 +07:00
avatarmanager.php
backgroundjob.php
cache.php
config.php Merge pull request #11056 from AdamWill/9885-opcode 2015-02-10 17:21:15 +07:00
contactsmanager.php
databaseexception.php
databasesetupexception.php
datetimeformatter.php
datetimezone.php
db.php
defaults.php Merge pull request #13890 from owncloud/add-no-referrer 2015-02-16 14:36:44 +07:00
eventsource.php
filechunking.php
fileproxy.php
files.php
forbiddenexception.php
geo.php
group.php
helper.php Merge pull request #13854 from owncloud/avatar-exists 2015-02-09 17:06:24 +07:00
hintexception.php
hook.php Cleanup of PHPDoc return types 2015-01-16 20:30:43 +07:00
httphelper.php add timeout to curl request 2015-02-12 10:51:39 +07:00
image.php Check if imageflip is available 2015-02-12 10:21:20 +07:00
installer.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
json.php Deprecate `OC_JSON` and `OCP\JSON` 2015-02-12 00:56:13 +07:00
l10n.php
largefilehelper.php
log.php
mail.php Fix undefined offset 1 for wrong user mail address 2015-01-22 16:23:50 +07:00
mimetypes.list.php Updated the media type of some font types 2015-01-24 01:49:13 +07:00
naturalsort.php Performance improvements for NaturalSort 2015-02-09 16:32:43 +07:00
naturalsort_defaultcollator.php
navigationmanager.php
needsupdateexception.php
notsquareexception.php
ocs.php add a controller and reponse for ocs 2015-02-05 14:02:17 +07:00
ocsclient.php Cache responses from the AppStore server 2015-01-09 19:49:59 +07:00
preview.php Verify whether type is correct 2015-01-08 18:38:17 +07:00
previewmanager.php
repair.php Revert "enabled disabled files app in repair step" 2015-02-03 17:06:57 +07:00
repairexception.php
repairstep.php
response.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
search.php
server.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
serviceunavailableexception.php
setup.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
subadmin.php
systemconfig.php Add a method to set/unset multiple config values in one call 2015-01-23 11:00:53 +07:00
tagmanager.php
tags.php Merge pull request #13425 from owncloud/phpdoc_cleanup 2015-02-10 01:14:00 +07:00
template.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
templatelayout.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
tempmanager.php Check directory handle before we use it 2015-02-09 12:36:18 +07:00
updater.php Add version to .htaccess 2015-01-08 12:49:02 +07:00
urlgenerator.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
user.php URLEncode logout attribute 2015-02-13 12:08:23 +07:00
util.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +07:00
vobject.php