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']);
static table(string $table)
Returns a QueryBuilder for updating data in a given table.
Exception thrown if an argument is not of the expected type.
if(!$user||!$user->canDelete()) $name
getAll()
Load all config values from the config table.
static intoTable(string $table)
Returns a QueryBuilder for inserting data in a given table.
if(!$entity instanceof\ElggUser) $data
trait Loggable
Enables adding a logger.
static fromTable(string $table)
Returns a QueryBuilder for deleting data from a given table.
Boots Elgg and manages a cache of data needed during boot.
static fromTable(string $table, string $alias=null)
Returns a QueryBuilder for selecting data from a given table.
__construct(Database $db, BootService $boot)
Constructor.
Manipulates values in the dbprefix_config table.