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);
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.
if(!$user||!$user->canDelete()) $name
trait TimeUsing
Adds methods for setting the current time (for testing)
static intoTable(string $table)
Returns a QueryBuilder for inserting data in a given table.
getCurrentTime($modifier= '')
Get the (cloned) time.
__construct(protected Database $db)
Constructor.
if(!$entity instanceof\ElggUser) $data
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.
const ELGG_VALUE_TIMESTAMP
static fromTable(string $table, string $alias=null)
Returns a QueryBuilder for selecting data from a given table.
Database session handler.
$id
Generic annotation delete action.