Elgg
Version 1.11
|
Public Member Functions | |
__construct () | |
Constructor. More... | |
remove ($name, $site_guid=0) | |
Removes a config setting. More... | |
set ($name, $value, $site_guid=0) | |
Add or update a config setting. More... | |
get ($name, $site_guid=0) | |
Gets a configuration value. More... | |
loadAll ($site_guid=0) | |
Loads all configuration values from the dbprefix_config table into $CONFIG. More... | |
Definition at line 16 of file ConfigTable.php.
Elgg\Database\ConfigTable::__construct | ( | ) |
Constructor.
Definition at line 28 of file ConfigTable.php.
Elgg\Database\ConfigTable::get | ( | $name, | |
$site_guid = 0 |
|||
) |
Gets a configuration value.
Plugin authors should use elgg_get_config().
string | $name | The name of the config value |
int | $site_guid | Optionally, the GUID of the site (default: current site) |
Definition at line 124 of file ConfigTable.php.
Elgg\Database\ConfigTable::loadAll | ( | $site_guid = 0 | ) |
Loads all configuration values from the dbprefix_config table into $CONFIG.
int | $site_guid | Optionally, the GUID of the site (current site is assumed by default) |
Definition at line 189 of file ConfigTable.php.
Elgg\Database\ConfigTable::remove | ( | $name, | |
$site_guid = 0 |
|||
) |
Removes a config setting.
string | $name | The name of the field. |
int | $site_guid | Optionally, the GUID of the site (default: current site). |
Definition at line 41 of file ConfigTable.php.
Elgg\Database\ConfigTable::set | ( | $name, | |
$value, | |||
$site_guid = 0 |
|||
) |
Add or update a config setting.
Plugin authors should use elgg_set_config().
If the config name already exists, it will be updated to the new value.
string | $name | The name of the configuration value |
mixed | $value | Its value |
int | $site_guid | Optionally, the GUID of the site (current site is assumed by default) |
Definition at line 82 of file ConfigTable.php.