Elgg  Version 3.0
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 
22 }
Database abstraction query builder.
static fromTable($table, $alias=null)
{}
Definition: Select.php:13
_elgg_services()
Get the global service provider.
Definition: elgglib.php:1292
$table
Definition: cron.php:57
Query builder for fetching data from the database.
Definition: Select.php:8