50 public function remove(
string $name):
bool {
54 $this->boot->clearCache();
56 return $this->db->deleteData(
$delete) !==
false;
83 if ($this->
get($name) === null) {
91 $result = $this->db->insertData($insert);
98 $result = $this->db->updateData($update);
101 $this->boot->clearCache();
123 $result = $this->db->getDataRow($select);
125 return unserialize(
$result->value);
143 foreach (
$data as $row) {
144 $values[$row->name] = unserialize($row->value);
151 unset($values[
'path']);
152 unset($values[
'dataroot']);
153 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)
{}
getAll()
Load all config values from the config table.
if(!$entity instanceof\ElggUser) $data
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)
{}