Elgg  Version 5.1
Delete.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Database;
4 
8 class Delete extends QueryBuilder {
9 
13  public static function fromTable($table, $alias = null) {
14  $connection = _elgg_services()->db->getConnection('write');
15  $qb = new static($connection);
16  $qb->delete($table, $alias);
17 
18  return $qb;
19  }
20 }
Database abstraction query builder.
Query builder for updating data in the database.
Definition: Delete.php:8
$table
Definition: user.php:37
_elgg_services()
Get the global service provider.
Definition: elgglib.php:346
$qb
Definition: queue.php:11
static fromTable($table, $alias=null)
{}
Definition: Delete.php:13