56 public function remove(
string $name):
bool {
60 $this->boot->clearCache();
62 return $this->db->deleteData(
$delete) !==
false;
89 if ($this->
get($name) === null) {
97 $result = $this->db->insertData($insert);
104 $result = $this->db->updateData($update);
107 $this->boot->clearCache();
129 $result = $this->db->getDataRow($select);
131 return unserialize(
$result->value);
149 foreach (
$data as $row) {
150 $values[$row->name] = unserialize($row->value);
157 unset($values[
'path']);
158 unset($values[
'dataroot']);
159 unset($values[
'default_site']);
Exception thrown if an argument is not of the expected type.
if(!$user||!$user->canDelete()) $name
static table($table, $alias=null)
{}
if(elgg_trigger_plugin_hook('usersettings:save', 'user', $hooks_params, true)) foreach($request->validation() ->all() as $item) $data
getAll()
Load all config values from the config table.
trait Loggable
Enables adding a logger.
static intoTable($table)
{}
static fromTable($table, $alias=null)
{}
Boots Elgg and manages a cache of data needed during boot.
__construct(Database $db, BootService $boot)
Constructor.
Manipulates values in the dbprefix_config table.
static fromTable($table, $alias=null)
{}