44 public function remove(
string $name):
bool {
48 $this->boot->clearCache();
50 return $this->db->deleteData(
$delete) !==
false;
77 if ($this->
get($name) === null) {
85 $result = $this->db->insertData($insert);
92 $result = $this->db->updateData($update);
95 $this->boot->clearCache();
117 $result = $this->db->getDataRow($select);
119 return unserialize(
$result->value);
137 foreach (
$data as $row) {
138 $values[$row->name] = unserialize($row->value);
145 unset($values[
'path']);
146 unset($values[
'dataroot']);
147 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
__construct(protected Database $db, protected BootService $boot)
Constructor.
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.
foreach($recommendedExtensions as $extension) if(empty(ini_get('session.gc_probability'))||empty(ini_get('session.gc_divisor'))) $db
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.
Manipulates values in the dbprefix_config table.