Elgg
Version 6.1
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Database
Select.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Database
;
4
8
class
Select
extends
QueryBuilder
{
9
18
public
static
function
fromTable
(
string
$table
,
string
$alias = null): static {
19
$connection =
_elgg_services
()->db->getConnection(
'read'
);
20
21
$qb
=
new
static
($connection);
22
$qb
->from($table, $alias);
23
24
return
$qb
;
25
}
26
}
Elgg\Database\QueryBuilder
Database abstraction query builder.
Definition:
QueryBuilder.php:20
$table
$table
Definition:
user.php:37
Elgg\Database\Select\fromTable
static fromTable(string $table, string $alias=null)
Returns a QueryBuilder for selecting data from a given table.
Definition:
Select.php:18
_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
Elgg\Database\Select
Query builder for fetching data from the database.
Definition:
Select.php:8
Generated on Wed Dec 4 2024 00:00:20 for Elgg by
1.8.11