5 use Doctrine\DBAL\Exception\UniqueConstraintViolationException;
 
    8 use Elgg\Traits\TimeUsing;
 
   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);
 
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.
 
A generic parent class for database exceptions.
 
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