mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #1422 from owncloud/phil-davis-dev-app-config
Dev App Config minor corrections
This commit is contained in:
@@ -4,7 +4,7 @@ Configuration
|
||||
|
||||
.. sectionauthor:: Bernhard Posselt <dev@bernhard-posselt.com>
|
||||
|
||||
The config allows the app to set global, app and user settings can be injected from the ServerContainer. All values are saved as strings and must be casted to the correct value.
|
||||
The config that allows the app to set global, app and user settings can be injected from the ServerContainer. All values are saved as strings and must be cast to the correct value.
|
||||
|
||||
|
||||
.. code-block:: php
|
||||
@@ -42,7 +42,7 @@ The config allows the app to set global, app and user settings can be injected f
|
||||
|
||||
System values
|
||||
=============
|
||||
System values are saved in the :file:`config/config.php` and allow to modify and read the global configuration:
|
||||
System values are saved in the :file:`config/config.php` and allow the app to modify and read the global configuration:
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
@@ -135,4 +135,4 @@ User values are saved in the database per user and app and are good for saving u
|
||||
$this->config->setUserValue($userId, $this->appName, $key, $value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,7 +168,7 @@ would be passed in as the string *'false'* which is not what one would expect. T
|
||||
|
||||
}
|
||||
|
||||
The following types will be casted:
|
||||
The following types will be cast:
|
||||
|
||||
* **bool** or **boolean**
|
||||
* **float**
|
||||
|
||||
Reference in New Issue
Block a user