Elgg  Version master
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:351
$qb
Definition: queue.php:12
Query builder for fetching data from the database.
Definition: Select.php:8