[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

/phpbb/config/ -> db_text.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 159 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

db_text:: (7 methods):
  __construct()
  set()
  get()
  delete()
  set_array()
  get_array()
  delete_array()


Class: db_text  - X-Ref

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.

__construct(\phpbb\db\driver\driver_interface $db, $table)   X-Ref

param: \phpbb\db\driver\driver_interface $db        Database connection
param: string          $table     Table name

set($key, $value)   X-Ref
Sets the configuration option with the name $key to $value.

param: string $key       The configuration option's name
param: string $value     New configuration value
return: null

get($key)   X-Ref
Gets the configuration value for the name $key.

param: string $key       The configuration option's name
return: string|null      String result on success

delete($key)   X-Ref
Removes the configuration option with the name $key.

param: string $key       The configuration option's name
return: null

set_array(array $map)   X-Ref
Mass set configuration options: Receives an associative array,
treats array keys as configuration option names and associated
array values as their configuration option values.

param: array $map        Map from configuration names to values
return: null

get_array(array $keys)   X-Ref
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.

param: array $keys       Set of configuration option names
return: array            Map from configuration names to values

delete_array(array $keys)   X-Ref
Mass delete configuration options.

param: array $keys       Set of configuration option names
return: null



Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1