6 use Elgg\Traits\TimeUsing;
33 #[\ReturnTypeWillChange]
41 #[\ReturnTypeWillChange]
47 $result = $this->db->getDataRow($select);
55 #[\ReturnTypeWillChange]
67 return $this->db->updateData($update);
79 $this->db->insertData($insert);
86 #[\ReturnTypeWillChange]
94 #[\ReturnTypeWillChange]
107 #[\ReturnTypeWillChange]
108 public function gc($max_lifetime) {
112 return (
bool) $this->db->deleteData(
$delete);
if(! $user||! $user->canDelete()) $name
$id
Generic annotation delete action.
if(! $entity instanceof \ElggUser) $data
static fromTable(string $table)
Returns a QueryBuilder for deleting data from a given table.
static intoTable(string $table)
Returns a QueryBuilder for inserting data in a given table.
static fromTable(string $table, ?string $alias=null)
Returns a QueryBuilder for selecting data from a given table.
Database session handler.
__construct(protected Database $db)
Constructor.
static table(string $table)
Returns a QueryBuilder for updating data in a given table.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
const ELGG_VALUE_TIMESTAMP
foreach($recommendedExtensions as $extension) if(empty(ini_get('session.gc_probability'))||empty(ini_get('session.gc_divisor'))) $db