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