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