Elgg  Version 3.0
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
_elgg_services()
Get the global service provider.
Definition: elgglib.php:1292
$table
Definition: cron.php:57
static fromTable($table, $alias=null)
{}
Definition: Delete.php:13