Elgg  Version 3.0
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 
21 }
Database abstraction query builder.
static intoTable($table)
{}
Definition: Insert.php:13
Query builder for inserting data into the database.
Definition: Insert.php:8
_elgg_services()
Get the global service provider.
Definition: elgglib.php:1292
$table
Definition: cron.php:57