Commit 2c6411b8 authored by Bart Visscher's avatar Bart Visscher
Browse files

$default of OC_Config::[gs]etValue can have more then string as type

parent 1fb5f96c
......@@ -17,7 +17,7 @@ class AllConfig implements \OCP\IConfig {
* Sets a new system wide value
*
* @param string $key the key of the value, under which will be saved
* @param string $value the value that should be stored
* @param mixed $value the value that should be stored
* @todo need a use case for this
*/
// public function setSystemValue($key, $value) {
......@@ -28,7 +28,7 @@ class AllConfig implements \OCP\IConfig {
* Looks up a system wide defined value
*
* @param string $key the key of the value, under which it was saved
* @param string $default the default value to be returned if the value isn't set
* @param mixed $default the default value to be returned if the value isn't set
* @return string the saved value
*/
public function getSystemValue($key, $default = '') {
......
......@@ -77,7 +77,7 @@ class Config {
/**
* @brief Gets a value from config.php
* @param string $key key
* @param string $default = null default value
* @param mixed $default = null default value
* @return string the value or $default
*
* This function gets the value from config.php. If it does not exist,
......@@ -94,7 +94,7 @@ class Config {
/**
* @brief Sets a value
* @param string $key key
* @param string $value value
* @param mixed $value value
*
* This function sets the value and writes the config.php.
*
......
......@@ -42,7 +42,7 @@ class Config {
/**
* Gets a value from config.php
* @param string $key key
* @param string $default = null default value
* @param mixed $default = null default value
* @return string the value or $default
*
* This function gets the value from config.php. If it does not exist,
......@@ -55,7 +55,7 @@ class Config {
/**
* Sets a value
* @param string $key key
* @param string $value value
* @param mixed $value value
* @return bool
*
* This function sets the value and writes the config.php. If the file can
......
......@@ -38,7 +38,7 @@ interface IConfig {
* Sets a new system wide value
*
* @param string $key the key of the value, under which will be saved
* @param string $value the value that should be stored
* @param mixed $value the value that should be stored
* @todo need a use case for this
*/
// public function setSystemValue($key, $value);
......@@ -47,7 +47,7 @@ interface IConfig {
* Looks up a system wide defined value
*
* @param string $key the key of the value, under which it was saved
* @param string $default the default value to be returned if the value isn't set
* @param mixed $default the default value to be returned if the value isn't set
* @return string the saved value
*/
public function getSystemValue($key, $default = '');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment