db_update

  1. drupal
    1. drupal7
Versionen
drupal7 db_update($table, array $options = array())

Returns a new UpdateQuery object for the active database.

Übergabeparameter

$table The table to update.

$options An array of options to control how the query operates.

Rückgabewert

A new UpdateQuery object for this connection.

Verwandte Themen

▾ 105 functions call db_update()

aggregator_aggregator_fetch in modules/aggregator/aggregator.fetcher.inc
Implementation of hook_aggregator_fetch().
aggregator_block_save in modules/aggregator/aggregator.module
Implementation of hook_block_save().
aggregator_save_feed in modules/aggregator/aggregator.module
Add/edit/delete an aggregator feed.
batch_process in includes/form.inc
Process the batch.
block_install in modules/block/block.install
Implementation of hook_install().
book_update_bid in modules/book/book.module
Update the bid for a page and its children when it is moved to a new book.
claimItem in modules/system/system.queue.inc
comment_operations in modules/comment/comment.module
Comment operations. Offer different update operations depending on which comment administration page is being viewed.
comment_save in modules/comment/comment.module
Accepts a submission of new or changed comment content.
comment_unpublish_action in modules/comment/comment.module
Drupal action to unpublish a comment.
comment_unpublish_by_keyword_action in modules/comment/comment.module
Implementation of a configurable Drupal action.
comment_user_cancel in modules/comment/comment.module
Implementation of hook_user_cancel().
ContactSitewideTestCase::testSiteWideContact in modules/contact/contact.test
Test configuration options and site-wide contact form.
contact_admin_edit_submit in modules/contact/contact.admin.inc
Process the contact category edit page form submission.
CronRunTestCase::testTempFileCleanup in modules/system/system.test
Ensure that temporary files are removed.
DatabaseUpdateComplexTestCase::testBetweenConditionUpdate in modules/simpletest/tests/database_test.test
Test BETWEEN conditional clauses.
DatabaseUpdateComplexTestCase::testInConditionUpdate in modules/simpletest/tests/database_test.test
Test WHERE IN clauses.
DatabaseUpdateComplexTestCase::testLikeConditionUpdate in modules/simpletest/tests/database_test.test
Test LIKE conditionals.
DatabaseUpdateComplexTestCase::testNotInConditionUpdate in modules/simpletest/tests/database_test.test
Test WHERE NOT IN clauses.
DatabaseUpdateComplexTestCase::testOrConditionUpdate in modules/simpletest/tests/database_test.test
Test updates with OR conditionals.
DatabaseUpdateComplexTestCase::testUpdateExpression in modules/simpletest/tests/database_test.test
Test update with expression values.
DatabaseUpdateComplexTestCase::testUpdateOnlyExpression in modules/simpletest/tests/database_test.test
Test update with only expression values.
DatabaseUpdateLOBTestCase::testUpdateMultipleBlob in modules/simpletest/tests/database_test.test
Confirm that we can update two blob columns in the same table.
DatabaseUpdateLOBTestCase::testUpdateOneBlob in modules/simpletest/tests/database_test.test
Confirm that we can update a blob column.
DatabaseUpdateTestCase::testMultiGTUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a multiple records with a non-equality condition.
DatabaseUpdateTestCase::testMultiUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a multiple records successfully.
DatabaseUpdateTestCase::testSimpleUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a single record successfully.
DatabaseUpdateTestCase::testWhereAndConditionUpdate in modules/simpletest/tests/database_test.test
Confirm that we can stack condition and where calls.
DatabaseUpdateTestCase::testWhereUpdate in modules/simpletest/tests/database_test.test
Confirm that we can update a multiple records with a where call.
dblog_user_cancel in modules/dblog/dblog.module
Implementation of hook_user_cancel().
drupal_session_regenerate in includes/session.inc
Called when an anonymous user becomes authenticated or vice-versa.
drupal_set_installed_schema_version in includes/install.inc
Update the installed version information for a module.
drupal_write_record in includes/common.inc
Save a record to the database based upon the schema.
field_associate_fields in modules/field/field.module
Allows a module to update the database for fields and columns it controls.
field_delete_field in modules/field/field.crud.inc
Mark a field for deletion, including all its instances and all data associated with it.
field_delete_instance in modules/field/field.crud.inc
Mark a field instance for deletion, including all data associated with it.
field_modules_disabled in modules/field/field.module
Implementation of hook_modules_disabled().
field_sql_storage_field_storage_delete_field in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_delete_field().
field_sql_storage_field_storage_delete_instance in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_delete_instance().
field_sql_storage_field_storage_rename_bundle in modules/field/modules/field_sql_storage/field_sql_storage.module
Implementation of hook_field_storage_rename_bundle().
field_test_entity_save in modules/simpletest/tests/field_test.module
filter_admin_delete_submit in modules/filter/filter.admin.inc
Process filter delete form submission.
filter_admin_format_form_submit in modules/filter/filter.admin.inc
Process text format form submissions.
filter_admin_order_submit in modules/filter/filter.admin.inc
Process filter order configuration form submission.
filter_admin_overview_submit in modules/filter/filter.admin.inc
hook_exit in modules/system/system.api.php
Perform cleanup tasks.
hook_node_update in modules/node/node.api.php
The node being updated.
hook_user_cancel in modules/user/user.api.php
Act on user account cancellations.
locale_languages_delete_form_submit in includes/locale.inc
Process language deletion submissions.
locale_languages_edit_form_submit in includes/locale.inc
Process the language editing form submission.
locale_languages_overview_form_submit in includes/locale.inc
Process language overview form submissions, updating existing languages.
locale_translate_edit_form_submit in includes/locale.inc
Process string editing form submissions.
MenuIncTestCase::testMenuLinkMaintain in modules/simpletest/tests/menu.test
Tests for menu_link_maintain().
menu_edit_menu_submit in modules/menu/menu.admin.inc
Submit function for adding or editing a custom menu.
menu_link_maintain in includes/menu.inc
Insert, update or delete an uncustomized menu link related to a module.
menu_link_save in includes/menu.inc
Save a menu link.
module_disable in includes/module.inc
Disable a given set of modules.
module_enable in includes/module.inc
Enable a given list of modules.
module_rebuild_cache in includes/module.inc
Rebuild the database cache of module files.
node_save in modules/node/node.module
Save changes to a node or add a new node.
node_search in modules/node/node.module
Implementation of hook_search().
node_type_save in modules/node/node.module
Saves a node type to the database.
node_type_update_nodes in modules/node/node.module
Updates all nodes of one type to be of another type.
node_user_cancel in modules/node/node.module
Implementation of hook_user_cancel().
path_set_alias in modules/path/path.module
Set an aliased path for a given Drupal path, preventing duplicates.
poll_cancel in modules/poll/poll.module
Submit callback for poll_cancel_form
poll_cron in modules/poll/poll.module
Implementation of hook_cron().
poll_update in modules/poll/poll.module
Implementation of hook_update().
poll_user_cancel in modules/poll/poll.module
Implementation of hook_user_cancel().
poll_vote in modules/poll/poll.module
Submit handler for processing a vote
profile_admin_overview_submit in modules/profile/profile.admin.inc
Submit handler to update changed profile field weights and categories.
profile_field_form_submit in modules/profile/profile.admin.inc
Process profile_field_form submissions.
statistics_cron in modules/statistics/statistics.module
Implementation of hook_cron().
statistics_user_cancel in modules/statistics/statistics.module
Implementation of hook_user_cancel().
system_cron in modules/system/system.module
Implementation of hook_cron().
system_status in modules/system/system.admin.inc
Menu callback: displays the site status report. Can also be used as a pure check.
system_themes_form_submit in modules/system/system.admin.inc
Process system_themes_form form submissions.
system_update_7004 in modules/system/system.install
Remove hardcoded numeric deltas from all blocks in core.
taxonomy_node_type in modules/taxonomy/taxonomy.module
Implementation of hook_node_type().
taxonomy_vocabulary_confirm_reset_alphabetical_submit in modules/taxonomy/taxonomy.admin.inc
Submit handler to reset a vocabulary to alphabetical order after confirmation.
TextFieldTestCase::_testTextfieldWidgetsFormatted in modules/field/modules/text/text.test
Helper function for testTextfieldWidgetsFormatted().
translation_node_insert in modules/translation/translation.module
Implementation of hook_node_insert().
translation_node_update in modules/translation/translation.module
Implementation of hook_node_update().
translation_remove_from_set in modules/translation/translation.module
Remove a node from its translation set (if any) and update the set accordingly.
UpdateFeedItemTestCase::testUpdateFeedItem in modules/aggregator/aggregator.test
Test running "update items" from the 'admin/content/aggregator' page.
upload_save in modules/upload/upload.module
user_admin_role_submit in modules/user/user.admin.inc
user_authenticate in modules/user/user.module
Try to log in the user locally.
user_authenticate_finalize in modules/user/user.module
Finalize the login process. Must be called when logging in a user.
user_block_user_action in modules/user/user.module
Implementation of a Drupal action. Blocks the current user.
user_file_delete in modules/user/user.module
Implementation of hook_file_delete().
user_update_7000 in modules/user/user.install
Increase the length of the password field to accommodate better hashes.
user_update_7004 in modules/user/user.install
Add the user's pictures to the {files} table and make them managed files.
_batch_shutdown in includes/batch.inc
Shutdown function; store the current batch data for the next request.
_comment_update_node_statistics in modules/comment/comment.module
Updates the comment statistics for a given node. This should be called any time a comment is added, deleted, or updated.
_field_attach_rename_bundle in modules/field/field.attach.inc
Notify field.module that a bundle was renamed.
_locale_import_one_string in includes/locale.inc
Imports a string into the database
_locale_import_one_string_db in includes/locale.inc
Import one string into the database.
_locale_parse_js_file in includes/locale.inc
Parses a JavaScript file, extracts strings wrapped in Drupal.t() and Drupal.formatPlural() and inserts them into the database.
_locale_rebuild_js in includes/locale.inc
(Re-)Creates the JavaScript translation file for a language.
_menu_link_move_children in includes/menu.inc
Update the children of a menu link that's being moved.
_menu_navigation_links_rebuild in includes/menu.inc
Helper function to build menu links for the items in the menu router.
_menu_update_parental_status in includes/menu.inc
Check and update the has_children status for the parent of a link.
_sess_write in includes/session.inc
Session handler assigned by session_set_save_handler().
_user_cancel in modules/user/user.module
Last batch processing step for cancelling a user account.

Code

includes/database/database.inc, line 1886

<?php
function db_update($table, array $options = array()) {
  if (empty($options['target']) || $options['target'] == 'slave') {
    $options['target'] = 'default';
  }
  return Database::getConnection($options['target'])->update($table, $options);
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen