Elgg
Version master
engine
classes
Elgg
Database
Delete.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Database
;
4
8
class
Delete
extends
QueryBuilder
{
9
17
public
static
function
fromTable
(
string
$table
): static {
18
$connection =
_elgg_services
()->db->
getConnection
(
'write'
);
19
$qb
=
new
static
($connection);
20
$qb
->delete(
$table
);
21
22
return
$qb
;
23
}
24
}
$table
$table
Definition:
user.php:37
Elgg\Database\Delete
Query builder for updating data in the database.
Definition:
Delete.php:8
Elgg\Database\Delete\fromTable
static fromTable(string $table)
Returns a QueryBuilder for deleting data from a given table.
Definition:
Delete.php:17
Elgg\Database\QueryBuilder
Database abstraction query builder.
Definition:
QueryBuilder.php:20
Elgg\Database\QueryBuilder\getConnection
getConnection()
Returns the connection.
Definition:
QueryBuilder.php:56
_elgg_services
_elgg_services()
Get the global service provider.
Definition:
elgglib.php:353
Elgg\Database
Definition:
AccessCollections.php:3
$qb
$qb
Definition:
queue.php:12
Generated on Fri Aug 29 2025 00:01:57 for Elgg by
1.9.1