Search for fetch

  1. Search 7.x for fetch
  2. Search 9.5.x for fetch
  3. Search 8.9.x for fetch
  4. Search 10.3.x for fetch
  5. Search 11.x for fetch
  6. Other projects
Title Object type File name Summary
FetchModeTrait::assocToNum function core/lib/Drupal/Core/Database/FetchModeTrait.php Converts a row of data in associative format to list.
FetchModeTrait::assocToObj function core/lib/Drupal/Core/Database/FetchModeTrait.php Converts a row of data in associative format to object.
FetchTest class core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests the Database system's various fetch capabilities.
FetchTest.php file core/tests/Drupal/KernelTests/Core/Database/FetchTest.php
FetchTest::testQueryFetchAllAssoc function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests ::fetchAllAssoc().
FetchTest::testQueryFetchAllColumn function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch all records into an array explicitly.
FetchTest::testQueryFetchArray function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record to an associative array explicitly.
FetchTest::testQueryFetchClass function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record into a new instance of a custom class.
FetchTest::testQueryFetchCol function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch an entire column of a result set at once.
FetchTest::testQueryFetchColEdgeCases function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests ::fetchCol() for edge values returned.
FetchTest::testQueryFetchColIndexOutOfRange function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that an out of range index in fetchCol() throws an error.
FetchTest::testQueryFetchColIndexOutOfRangeOnEmptyResultSet function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms empty result set prevails on out of range index in fetchCol().
FetchTest::testQueryFetchColumn function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a single column value.
FetchTest::testQueryFetchColumnOutOfRange function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that an out of range index throws an error.
FetchTest::testQueryFetchDefault function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record properly in default object mode.
FetchTest::testQueryFetchField function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests ::fetchField().
FetchTest::testQueryFetchFieldEdgeCases function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests ::fetchField() for edge values returned.
FetchTest::testQueryFetchFieldIndexOutOfRange function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that an out of range index in fetchField() throws an error.
FetchTest::testQueryFetchFieldIndexOutOfRangeOnEmptyResultSet function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms empty result set prevails on out of range index in fetchField().
FetchTest::testQueryFetchNum function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record into an indexed array explicitly.
FetchTest::testQueryFetchObject function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record to an object explicitly.
FetchTest::testQueryFetchObjectClass function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record into a class using fetchObject.
FetchTest::testQueryFetchObjectClassNoConstructorArgs function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Confirms that we can fetch a record into a class without constructor args.
FetchTest::testRowCount function core/tests/Drupal/KernelTests/Core/Database/FetchTest.php Tests that rowCount() throws exception on SELECT query.
FileCacheBackendInterface::fetch function core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php Fetches data from the cache backend.
locale.fetch.inc file core/modules/locale/locale.fetch.inc
locale_translation_batch_fetch_build function core/modules/locale/locale.fetch.inc Builds a batch to download and import project translations.
locale_translation_batch_fetch_download function core/modules/locale/locale.batch.inc Implements callback_batch_operation().
locale_translation_batch_fetch_finished function core/modules/locale/locale.batch.inc Implements callback_batch_finished().
locale_translation_batch_fetch_import function core/modules/locale/locale.batch.inc Implements callback_batch_operation().
media.oembed.resource_fetcher service core/modules/media/media.services.yml Drupal\media\OEmbed\ResourceFetcher
ModuleTest::testViewsFetchPluginNames function core/modules/views/tests/src/Kernel/ModuleTest.php Tests the \Drupal\views\Views::fetchPluginNames() method.
OEmbed::$resourceFetcher property core/modules/media/src/Plugin/media/Source/OEmbed.php The oEmbed resource fetcher service.
OEmbedForm::$resourceFetcher property core/modules/media_library/src/Form/OEmbedForm.php The oEmbed resource fetcher service.
OEmbedFormatter::$resourceFetcher property core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php The oEmbed resource fetcher.
OEmbedIframeController::$resourceFetcher property core/modules/media/src/Controller/OEmbedIframeController.php The oEmbed resource fetcher service.
OEmbedResourceConstraintValidator::$resourceFetcher property core/modules/media/src/Plugin/Validation/Constraint/OEmbedResourceConstraintValidator.php The resource fetcher service.
PackageManagerUpdateProcessor::processFetchTask function core/modules/package_manager/src/PackageManagerUpdateProcessor.php Processes a task to fetch available update data for a single project.
PageCache::fetch function core/modules/page_cache/src/StackMiddleware/PageCache.php Fetches a response from the backend and stores it in the cache.
PdoResult::fetch function core/lib/Drupal/Core/Database/Statement/PdoResult.php Fetches the next row.
PdoResult::fetchAll function core/lib/Drupal/Core/Database/Statement/PdoResult.php Returns an array containing all of the result set rows.
PdoResult::setFetchMode function core/lib/Drupal/Core/Database/Statement/PdoResult.php Sets the default fetch mode for this result set.
PdoTrait::$fetchModeLiterals property core/lib/Drupal/Core/Database/Statement/PdoTrait.php Map FETCH_* modes to their literal for inclusion in messages.
PdoTrait::clientFetch function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Fetches the next row from the PDO statement.
PdoTrait::clientFetchAll function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Returns an array containing all of the result set rows.
PdoTrait::clientFetchColumn function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Returns a single column from the next row of a result set.
PdoTrait::clientFetchObject function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Fetches the next row and returns it as an object.
PdoTrait::clientSetFetchMode function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Sets the default fetch mode for the PDO statement.
PdoTrait::fetchAsToPdo function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Converts a FetchAs mode to a \PDO::FETCH_* constant value.
PdoTrait::pdoToFetchAs function core/lib/Drupal/Core/Database/Statement/PdoTrait.php Converts a \PDO::FETCH_* constant value to a FetchAs mode.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.