Jonas Meurer
241dfef7fb
Don't write to config file if `config_is_read_only` is set
Also don't write to cache in this case to prevent cache and config file
being out of sync.
Fixes: #29901
Signed-off-by: Jonas Meurer <jonas@freesources.org>
2 years ago
Carl Schwan
28970563a2
Remove some mentions of ownCloud from our api documentation
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2 years ago
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
3 years ago
Christoph Wurst
cb057829f7
Update license headers for 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
28f8eb5dba
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
4 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* 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>
4 years ago
Joas Schilling
a11ef5134c
Add methods to get casted system values
Signed-off-by: Joas Schilling <coding@schilljs.com>
5 years ago
Joas Schilling
0215b004da
Update with robin
8 years ago
Joas Schilling
ba87db3fcc
Fix others
8 years ago
blizzz
51fd2602a7
Revert "Downstream 2016-06-08"
8 years ago
Joas Schilling
0041d89dc2
Do not allow to store boolean configs, they behave unexpected on postgres
8 years ago
Joas Schilling
911fd3ead4
Do not allow to store boolean configs, they behave unexpected on postgres
8 years ago
Lukas Reschke
aba539703c
Update license headers
8 years ago
Roeland Jago Douma
d666725fa7
Move \OCP to PSR-4
8 years ago
Thomas Müller
682821c71e
Happy new year!
8 years ago
Joas Schilling
faba02564a
Move the filtering of sensitive data to the config class
8 years ago
Morris Jobke
7644950b48
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
9 years ago
Joas Schilling
730efe25a4
Make scrutinizer happy
9 years ago
Vincent Petry
a32c71d25e
Revert "Deprecated \OCP\IAppConfig - add missing methods to IConfig"
This reverts commit 012016d331
.
9 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
9 years ago
Morris Jobke
012016d331
Deprecated \OCP\IAppConfig - add missing methods to IConfig
9 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
9 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
9 years ago
Joas Schilling
c61e9f3912
Add a method to set/unset multiple config values in one call
This reduces the number of file writes we do for config.php and therefor
hopefully helps lowering the chances for empty config.php files
9 years ago
Joas Schilling
bef7392c4c
Add type of the variables to the docs
9 years ago
Morris Jobke
af91ee97c9
introduce preCondition for setUserValue to provide atomic check-and-update
9 years ago
Morris Jobke
f0b10324ca
Refactoring of OC_Preferences to AllConfig
* keep old static methods - mapped to new ones and deprecated
* removed deleteApp, getUsers, getApps because they are unused
* make AllConfig unit tests more robust against not cleaned up environments
9 years ago
Morris Jobke
719008836d
introduce deleteAllUserValues
9 years ago
Morris Jobke
985b15f770
introduce proper interface for deleteAppValue
9 years ago
Lukas Reschke
f7c393fa9f
Fix PHPDoc
Stop my IDE and Scrutinizer from complaining.
9 years ago
Robin Appelman
12ac3a800d
Expose getAppKeys trough \OCP\IConfig
9 years ago
Robin Appelman
0a1e5aebf1
Extend public config interface
9 years ago
Lukas Reschke
7acdd018a1
Add support for getting the real client IP behind proxies
Fixes https://github.com/owncloud/core/issues/10624
Fix copy paste fail
Add unittest for comma separated headers
Revert 3rdparty
9 years ago
Lukas Reschke
88c3a4a31a
Expose setSystemValue
9 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
10 years ago
Bart Visscher
2c6411b897
$default of OC_Config::[gs]etValue can have more then string as type
10 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
10 years ago
Robin Appelman
e2efad6ae7
Also add default to the \OCP\IConfig interface
10 years ago
Morris Jobke
ef592981ea
unify license headers for public API files
10 years ago
Morris Jobke
d2a48d58ce
fix "No page-level DocBlock"
10 years ago
Bart Visscher
0c6dcdba6b
Add missing implements and fix parameters in IConfig
10 years ago
Thomas Müller
9116303cfc
fixing typos
10 years ago
Bart Visscher
e92abfd4d8
Add Config container class to server container
10 years ago