Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Database
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
}
Elgg\Database\QueryBuilder
Database abstraction query builder.
Definition:
QueryBuilder.php:18
Elgg\Database\Insert\intoTable
static intoTable($table)
{}
Definition:
Insert.php:13
Elgg\Database\Insert
Query builder for inserting data into the database.
Definition:
Insert.php:8
_elgg_services
_elgg_services()
Get the global service provider.
Definition:
elgglib.php:346
Elgg\Database
Definition:
AccessCollections.php:3
$qb
$qb
Definition:
queue.php:11
$table
$table
Definition:
cron.php:64
Generated on Thu Sep 28 2023 00:01:46 for Elgg by
1.8.11