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