mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/7262] Backport set_config() and set_config_count() docs from develop.
PHPBB3-7262
This commit is contained in:
parent
42b211a4a1
commit
e8b3e8498d
1 changed files with 16 additions and 2 deletions
|
@ -137,7 +137,14 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set config value. Creates missing config entry.
|
* Sets a configuration option's value.
|
||||||
|
*
|
||||||
|
* @param string $config_name The configuration option's name
|
||||||
|
* @param string $config_value New configuration value
|
||||||
|
* @param bool $is_dynamic Whether this variable should be cached or if it
|
||||||
|
* changes too frequently to be efficiently cached.
|
||||||
|
*
|
||||||
|
* @return null
|
||||||
*/
|
*/
|
||||||
function set_config($config_name, $config_value, $is_dynamic = false)
|
function set_config($config_name, $config_value, $is_dynamic = false)
|
||||||
{
|
{
|
||||||
|
@ -166,7 +173,14 @@ function set_config($config_name, $config_value, $is_dynamic = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set dynamic config value with arithmetic operation.
|
* Increments an integer config value directly in the database.
|
||||||
|
*
|
||||||
|
* @param string $config_name The configuration option's name
|
||||||
|
* @param int $increment Amount to increment by
|
||||||
|
* @param bool $is_dynamic Whether this variable should be cached or if it
|
||||||
|
* changes too frequently to be efficiently cached.
|
||||||
|
*
|
||||||
|
* @return null
|
||||||
*/
|
*/
|
||||||
function set_config_count($config_name, $increment, $is_dynamic = false)
|
function set_config_count($config_name, $increment, $is_dynamic = false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue