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