| Versionen | |
|---|---|
| drupal7 | public DatabaseConnection::insert($table, array $options = array()) |
Prepare and return an INSERT query object with the specified ID.
$options An array of options on the query.
A new InsertQuery object.
includes/
<?php
public function insert($table, array $options = array()) {
if (empty($this->insertClass)) {
$this->insertClass = 'InsertQuery_' . $this->driver();
if (!class_exists($this->insertClass)) {
$this->insertClass = 'InsertQuery';
}
}
$class = $this->insertClass;
return new $class($this, $table, $options);
}
?>
Kommentare
Kommentar hinzufügen