Skip to main content
backdrop Documentation
Documentation and API source code for Backdrop CMS.
  • Welcome!
    • Login

Search for fetch

  1. Home »
  2. API reference »
  3. 1.x
Name Type Location Description
DatabaseStatementBase::fetchAllAssoc function core/includes/database/database.inc Returns the result set as an associative array keyed by the given field.
DatabaseStatementBase::fetchAllKeyed function core/includes/database/database.inc Returns the entire result set as a single associative array.
DatabaseStatementEmpty::setFetchMode function core/includes/database/database.inc
DatabaseStatementPrefetch::$rowCount property core/includes/database/prefetch.inc The number of rows affected by the last query.
DatabaseStatementPrefetch::fetchField function core/includes/database/prefetch.inc Returns a single field from the next record of a result set.
DatabaseStatementPrefetch::fetchAssoc function core/includes/database/prefetch.inc Fetches the next row and returns it as an associative array.
DatabaseStatementEmpty::fetchAllKeyed function core/includes/database/database.inc Returns the entire result set as a single associative array.
DatabaseStatementEmpty::fetchAllAssoc function core/includes/database/database.inc Returns the result set as an associative array keyed by the given field.
DatabaseStatementPrefetch::fetchColumn function core/includes/database/prefetch.inc
DatabaseStatementPrefetch::fetchObject function core/includes/database/prefetch.inc
DatabaseStatementInterface::fetchField function core/includes/database/database.inc Returns a single field from the next record of a result set.
DatabaseStatementInterface::fetchAssoc function core/includes/database/database.inc Fetches the next row and returns it as an associative array.
DatabaseStatementPrefetch::$currentRow property core/includes/database/prefetch.inc The current row, retrieved in PDO::FETCH_ASSOC format.
DatabaseStatementPrefetch::$currentKey property core/includes/database/prefetch.inc The key of the current row.
DatabaseStatementPrefetch::$fetchStyle property core/includes/database/prefetch.inc Holds the current fetch style (which will be used by the next fetch).
DatabaseStatementPrefetch::__construct function core/includes/database/prefetch.inc Creates a prefetch database statement object.
DatabaseStatementPrefetch::getStatement function core/includes/database/prefetch.inc Grab a PDOStatement object from a given query and its arguments.
DatabaseStatementPrefetch::setFetchMode function core/includes/database/prefetch.inc
DatabaseStatementPrefetch::$queryString property core/includes/database/prefetch.inc The query string.
DatabaseStatementPrefetch::$columnNames property core/includes/database/prefetch.inc The list of column names in this result set.
DatabaseStatementPrefetch::fetchAllKeyed function core/includes/database/prefetch.inc Returns the entire result set as a single associative array.
DatabaseStatementPrefetch::fetchAllAssoc function core/includes/database/prefetch.inc Returns the result set as an associative array keyed by the given field.
DatabaseStatementPrefetch::$fetchOptions property core/includes/database/prefetch.inc Holds supplementary current fetch options (to be used by the next fetch).
DatabaseFetch2TestCase::testQueryFetchNum function core/modules/simpletest/tests/database_test.test
DatabaseStatementPrefetch::getQueryString function core/includes/database/prefetch.inc Return the object's SQL query string.
DatabaseFetch2TestCase::testQueryFetchCol function core/modules/simpletest/tests/database_test.test Confirm that we can fetch an entire column of a result set at once.
DatabaseStatementInterface::fetchAllKeyed function core/includes/database/database.inc Returns the entire result set as a single associative array.
DatabaseStatementInterface::fetchAllAssoc function core/includes/database/database.inc Returns the result set as an associative array keyed by the given field.
DatabaseStatementPrefetch::$driverOptions property core/includes/database/prefetch.inc Driver-specific options. Can be used by child classes.
DatabaseFetchTestCase::testQueryFetchClass function core/modules/simpletest/tests/database_test.test Confirm that we can fetch a record into a new instance of a custom class.
DatabaseFetch2TestCase::testQueryFetchBoth function core/modules/simpletest/tests/database_test.test Confirm that we can fetch a record into a doubly-keyed array explicitly.
DatabaseStatementPrefetch::$resultRowCount property core/includes/database/prefetch.inc The number of rows in this result set.
DatabaseFetchTestCase::testQueryFetchArray function core/modules/simpletest/tests/database_test.test Confirm that we can fetch a record to an array associative explicitly.
DatabaseFetchTestCase::testQueryFetchObject function core/modules/simpletest/tests/database_test.test Confirm that we can fetch a record to an object explicitly.
DatabaseStatementPrefetch::throwPDOException function core/includes/database/prefetch.inc Throw a PDO Exception based on the last PDO error.
DatabaseStatementPrefetchGadgetChainTestCase class core/modules/simpletest/tests/database_test.test Tests database statements against deserialization attacks.
DatabaseFetchTestCase::testQueryFetchDefault function core/modules/simpletest/tests/database_test.test Confirm that we can fetch a record properly in default object mode.
DatabaseStatementPrefetch::$defaultFetchStyle property core/includes/database/prefetch.inc Holds the default fetch style.
ConnectionUnitTest::testOpenQueryPrefetchClose function core/modules/simpletest/tests/database_test.test Tests Database::closeConnection() with a query and custom prefetch method.
UpdateTestContribCase::testUpdateBrokenFetchURL function core/modules/update/tests/update.test Makes sure that if we fetch from a broken URL, sane things happen.
UpdateCoreUnitTestCase::testUpdateBuildFetchUrl function core/modules/update/tests/update.test Tests that _update_build_fetch_url() builds the URL correctly.
DatabaseStatementPrefetch::$defaultFetchOptions property core/includes/database/prefetch.inc Holds supplementary default fetch options.
DatabaseEmptyStatementTestCase::testEmptyFetchAll function core/modules/simpletest/tests/database_test.test Test that the empty result set mass-fetches in an expected way.
DatabaseFetchTestCase::testQueryFetchClassCustomConstructorArgs function core/modules/simpletest/tests/database_test.test Test passing custom constructor_args for a FETCH_CLASS.
DatabaseStatementPrefetchGadgetChainTestCase::testUpdateQueryGadgetChain function core/modules/simpletest/tests/database_test.test Tests unserialization within the UpdateQuery class.
DatabaseStatementPrefetchGadgetChainTestCase::testThemeRegistryGadgetChain function core/modules/simpletest/tests/database_test.test Tests unserialization within the theme registry.

Pages

  • « first
  • ‹ previous
  • 1
  • 2

Directory

  • Getting started
    • Installing
    • Updates vs upgrades
    • Hosting/deploying
  • Upgrading from Drupal
    • Introduction
    • Upgrade overview
    • Converting Drupal code
  • User guide
    • Quick start guide
    • Using Backdrop
  • Add-On Documentation
  • Developing for Backdrop
    • Developing modules
    • Developing themes
    • Developing layouts
    • Using libraries
    • Local development
    • Writing secure code
    • Using JavaScript
  • Contributors guide
    • Contribute to Backdrop core
      • How to use the core issue queue
      • Adding labels to issues
      • Adding milestones to issues
    • Contribute Backdrop add-ons
    • Contribute to documentation
  • Developer API
    • Topics
    • Functions
    • Classes
    • Files
    • Globals
    • Icon API
    • Database API
    • Theme functions
    • Form API reference
  • Appendix/reference
    • Change records
    • Glossary
    • Coding & documentation standards
    • Contrib permissions policy

Stay connected

Sign up for our newsletter

Powered by Backdrop CMS

Footer Menu

  • documentation
  • localization
  • events
  • forum
  • backdropcms.org