35 #[\ReturnTypeWillChange] 43 #[\ReturnTypeWillChange] 49 $result = $this->db->getDataRow($select);
57 #[\ReturnTypeWillChange] 69 return $this->db->updateData($update);
82 $this->db->insertData($insert);
84 $prev = $e->getPrevious();
85 if ($prev instanceof UniqueConstraintViolationException) {
99 #[\ReturnTypeWillChange] 107 #[\ReturnTypeWillChange] 112 $this->db->deleteData(
$delete);
120 #[\ReturnTypeWillChange] 121 public function gc($max_lifetime) {
125 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
A generic parent class for database exceptions.
static fromTable(string $table)
Returns a QueryBuilder for deleting data from a given table.
const ELGG_VALUE_TIMESTAMP
Database session handler.
static fromTable(string $table,?string $alias=null)
Returns a QueryBuilder for selecting data from a given table.
$id
Generic annotation delete action.