db_text
class db_text
Manages configuration options with an arbitrary length value stored in a TEXT column. In constrast to class \phpbb\config\db, values are never cached and prefetched, but every get operation sends a query to the database.
Properties
protected driver_interface | $db | Database connection |
|
protected string | $table | Name of the database table used. |
Methods
Sets the configuration option with the name $key to $value.
Gets the configuration value for the name $key.
Removes the configuration option with the name $key.
Mass set configuration options: Receives an associative array, treats array keys as configuration option names and associated array values as their configuration option values.
Mass get configuration options: Receives a set of configuration option names and returns the result as a key => value map where array keys are configuration option names and array values are associated config option values.
Mass delete configuration options.
Details
at line 39
__construct(driver_interface $db, string $table)
No description
at line 53
null
set(string $key, string $value)
Sets the configuration option with the name $key to $value.
at line 66
string|null
get(string $key)
Gets the configuration value for the name $key.
at line 80
null
delete(string $key)
Removes the configuration option with the name $key.
at line 94
null
set_array(array $map)
Mass set configuration options: Receives an associative array, treats array keys as configuration option names and associated array values as their configuration option values.
at line 128
array
get_array(array $keys)
Mass get configuration options: Receives a set of configuration option names and returns the result as a key => value map where array keys are configuration option names and array values are associated config option values.
at line 152
null
delete_array(array $keys)
Mass delete configuration options.