phpBB

Development Wiki

Umil.config update

From phpBB Development Wiki

Revision as of 21:39, 10 January 2009 by Exreaction (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

umil::config_update –– Update a config setting using the Umil Library.

Description

string umil::config_update ( mixed $config_name [, string $config_value [, boolean $is_dynamic ]] )

Parameters

Parameter Required/Default Usage
config_name Required The name of the config setting to update
config_value default '' The value of the config setting to update
is_dynamic default false True for a dynamic config setting (one that gets selected from the database with each page load), false for a normal config setting

Return Values

Returns result or umil_end data

This article is a stub. You can help in improving Olympus Documentation by expanding it.


Examples

Example #1

Update a config item named 'test_mod_bool' with the value of (bool) true

$umil->config_update('test_mod_bool'true);

Example #2

Update a dynamic config item named 'test_mod_count' with a value of 0

$umil->config_update('test_mod_count'0true);

Example #3

Update multiple config items with one function call

$umil->config_update(array(
    array(
'test_mod_bool'true),
    array(
'test_mod_string''test'),
    array(
'test_mod_count'0true),
));

See Also