Elgg
Version 6.1
|
Manipulates values in the dbprefix_config table. More...
Public Member Functions | |
__construct (protected Database $db, protected 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' |
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 | ( | protected Database | $db, |
protected BootService | $boot | ||
) |
Constructor.
Database | $db | Database |
BootService | $boot | BootService |
Definition at line 31 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 112 of file ConfigTable.php.
Elgg\Database\ConfigTable::getAll | ( | ) |
Load all config values from the config table.
Definition at line 130 of file ConfigTable.php.
Elgg\Database\ConfigTable::remove | ( | string | $name | ) |
Removes a config setting.
string | $name | The name of the field. |
Definition at line 44 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 71 of file ConfigTable.php.
const Elgg\Database\ConfigTable::TABLE_NAME = 'config' |
Definition at line 23 of file ConfigTable.php.