Elgg  Version master
Delete.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Database;
4 
8 class Delete extends QueryBuilder {
9 
17  public static function fromTable(string $table): static {
18  $connection = _elgg_services()->db->getConnection('write');
19  $qb = new static($connection);
20  $qb->delete($table);
21 
22  return $qb;
23  }
24 }
Database abstraction query builder.
Query builder for updating data in the database.
Definition: Delete.php:8
static fromTable(string $table)
Returns a QueryBuilder for deleting data from a given table.
Definition: Delete.php:17
$table
Definition: user.php:37
_elgg_services()
Get the global service provider.
Definition: elgglib.php:351
$qb
Definition: queue.php:12