Esempio 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]);
 }
Esempio n. 2
0
 public function setTable($table)
 {
     $this->selectQuery = db_select($table);
     $this->selectQuery->fields($table);
 }