Exemplo n.º 1
0
 /**
  * FetchField constructor.
  *
  * @param string $table
  * @param string $field
  */
 public function __construct($table, $field)
 {
     $this->query = db_select($table);
     $this->query->fields($table, [$field]);
 }
Exemplo n.º 2
0
 public function setTable($table)
 {
     $this->selectQuery = db_select($table);
     $this->selectQuery->fields($table);
 }