UpdateQuery::fields

public function UpdateQuery::fields

public UpdateQuery::fields(array $fields)

Adds a set of field->value pairs to be updated.

Parameters

$fields: An associative array of fields to write into the database. The array keys are the field names and the values are the values to which to set them.

Return value

UpdateQuery The called object.

File

includes/database/query.inc, line 1114
Non-specific Database query code. Used by all engines.

Class

UpdateQuery
General class for an abstracted UPDATE operation.

Code

public function fields(array $fields) {
  $this->fields = $fields;
  return $this;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!query.inc/function/UpdateQuery::fields/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部