Elgg
Version 6.0
|
Manipulates values in the dbprefix_config table. More...
Public Member Functions | |
__construct (Database $db, BootService $boot) | |
Constructor. More... | |
remove (string $name) | |
Removes a config setting. More... | |
set (string $name, $value) | |
Add or update a config setting. More... | |
get (string $name) | |
Gets a configuration value. More... | |
getAll () | |
Load all config values from the config table. More... | |
Public Attributes | |
const | TABLE_NAME = 'config' |
Protected Attributes | |
Database | $db |
BootService | $boot |
Manipulates values in the dbprefix_config table.
Do not use to read/write $CONFIG.
Definition at line 16 of file ConfigTable.php.
Elgg\Database\ConfigTable::__construct | ( | Database | $db, |
BootService | $boot | ||
) |
Constructor.
Database | $db | Database |
BootService | $boot | BootService |
Definition at line 35 of file ConfigTable.php.
Elgg\Database\ConfigTable::get | ( | string | $name | ) |
Gets a configuration value.
Plugin authors should use elgg_get_config().
string | $name | The name of the config value |
Definition at line 118 of file ConfigTable.php.
Elgg\Database\ConfigTable::getAll | ( | ) |
Load all config values from the config table.
Definition at line 136 of file ConfigTable.php.
Elgg\Database\ConfigTable::remove | ( | string | $name | ) |
Removes a config setting.
string | $name | The name of the field. |
Definition at line 50 of file ConfigTable.php.
Elgg\Database\ConfigTable::set | ( | string | $name, |
$value | |||
) |
Add or update a config setting.
Plugin authors should use elgg_save_config().
If the config name already exists, it will be updated to the new value.
string | $name | The name of the configuration value (cannot be greater than 255 characters) |
mixed | $value | Its value |
InvalidArgumentException |
Definition at line 77 of file ConfigTable.php.
|
protected |
Definition at line 27 of file ConfigTable.php.
|
protected |
Definition at line 25 of file ConfigTable.php.
const Elgg\Database\ConfigTable::TABLE_NAME = 'config' |
Definition at line 23 of file ConfigTable.php.