db_fetch_object

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/database.mysql.inc, строка 141

Версии
5 – 6
db_fetch_object($result)

Выбирает одну запись из результата предыдущего запроса и представляет ее как объект.

Параметры

$result Ресурс результата запроса к базе данных, который возвращает db_query().

Возвращаемое значение

Объект, представляющий следующую запись в результате или FALSE. Атрибутами объекта являются поля выборки запроса.

Связанные темы

▾ 182 функции вызывают db_fetch_object()

actions_do in includes/actions.inc
Выполняет заданный список действий путем выполнения соответствующих коллбэков.
actions_get_all_actions in includes/actions.inc
Возвращает все записи действий из базы данных.
actions_load in includes/actions.inc
Возвращает одно действие из базы данных.
actions_synchronize in includes/actions.inc
Синхронизирует действия, переданные из модуля.
aggregator_block in modules/aggregator/aggregator.module
Реализация hook_block().
aggregator_categorize_items in modules/aggregator/aggregator.pages.inc
Form builder; build the page list form.
aggregator_feed_items_load in modules/aggregator/aggregator.pages.inc
Load feed items by passing a SQL query.
категория формы накопителя утверждает in modules/aggregator/aggregator.admin.inc
Утвердите подчинение формы подачи формы накопителя
aggregator_form_feed in modules/aggregator/aggregator.admin.inc
Конструктор формы; генерирует форму добавления/редактирования источников фида.
aggregator_form_feed_validate in modules/aggregator/aggregator.admin.inc
Validate aggregator_form_feed form submissions.
aggregator_page_categories in modules/aggregator/aggregator.pages.inc
Коллбэк меню; показывает все категории, используемые аггрегатором.
aggregator_page_opml in modules/aggregator/aggregator.pages.inc
Коллбэк меню; генерирует представление OPML из всех фидов.
aggregator_page_rss in modules/aggregator/aggregator.pages.inc
Коллбэк меню. Генерирует фид из материалов аггергатора или категорий в формате RSS 0.92.
aggregator_page_sources in modules/aggregator/aggregator.pages.inc
Коллбэк меню; показывает все фиды, используемые аггрегатором.
aggregator_parse_feed in modules/aggregator/aggregator.module
Parse a feed and store its items.
aggregator_remove in modules/aggregator/aggregator.module
Удаляет все элементы из фида.
aggregator_save_feed in modules/aggregator/aggregator.module
Добавление/редактирование/удаление фидов аггрегатора.
aggregator_save_item in modules/aggregator/aggregator.module
Добавление/редактирование/удаление элемента аггрегатора.
aggregator_view in modules/aggregator/aggregator.admin.inc
Отображает страницу администрирования агрегатора.
block_admin_configure in modules/block/block.admin.inc
Коллбэк меню. Отображает форму настройки блока.
block_block in modules/block/block.module
Реализация hook_block().
block_list in modules/block/block.module
Возвращает все блоки в заданном регионе для текущего пользователя.
block_user in modules/block/block.module
Реализация hook_user().
blogapi_blogger_get_recent_posts in modules/blogapi/blogapi.module
Blogging API callback. Returns the latest few postings in a user's blog. $bodies TRUE <a href='http://movabletype.org/docs/mtmanual_programmatic.html#item_mt%2EgetRecentPostTitles'> returns a bandwidth-friendly list</a>.
blogapi_mt_validate_terms in modules/blogapi/blogapi.module
Blogging API helper - find allowed taxonomy terms for a node type.
blog_feed_last in modules/blog/blog.pages.inc
Menu callback; displays an RSS feed containing recent blog entries of all users.
blog_feed_user in modules/blog/blog.pages.inc
Menu callback; displays an RSS feed containing recent blog entries of a given user.
blog_form in modules/blog/blog.module
Реализация hook_form().
blog_page_last in modules/blog/blog.pages.inc
Коллбэк меню. Показывает страницу Друпал с последними записями в блогах пользователей.
blog_page_user in modules/blog/blog.pages.inc
Коллбэк меню. Показывает страницу Друпал с последними записями в блоге данного пользователя.
book_update_6000 in modules/book/book.install
Drupal 5.x to 6.x update.
comment_admin_overview in modules/comment/comment.admin.inc
Конструктор формы; генерирует форму с кратким содержанием комментариев для администратора.
comment_delete in modules/comment/comment.admin.inc
Коллбек меню; Подтверждение удаления комментария.
comment_edit in modules/comment/comment.pages.inc
Конструктор формы; генерирует форму редактирования комментария.
comment_form_add_preview in modules/comment/comment.module
Конструктор формы; Формирует и проверяет форму предпросмотра комментария.
comment_get_recent in modules/comment/comment.module
Find a number of recent comments. This is done in two steps. 1. Find the n (specified by $number) nodes that have the most recent comments. This is done by querying node_comment_statistics which has an index on last_comment_timestamp, and is thus a...
comment_nodeapi in modules/comment/comment.module
Реализация hook_nodeapi().
comment_render in modules/comment/comment.module
Отображает комментарии.
comment_reply in modules/comment/comment.pages.inc
This function is responsible for generating a comment reply form. There are several cases that have to be handled, including: replies to comments replies to nodes attempts to reply to nodes that can no longer accept comments respecting access...
contact_admin_categories in modules/contact/contact.admin.inc
Categories/list tab.
contact_mail_page in modules/contact/contact.pages.inc
dblog_event in modules/dblog/dblog.admin.inc
Коллбэк меню; отображает подробности записи журнала системы.
dblog_overview in modules/dblog/dblog.admin.inc
Коллбэк меню; выводит логи сообщений.
dblog_top in modules/dblog/dblog.admin.inc
Menu callback; generic function to display a page of the most frequent dblog events of a specified type.
db_column_exists in includes/database.mysql.inc
Проверяет наличие колонки в данной таблице.
db_table_exists in includes/database.mysql.inc
Проверяет, существует ли таблица.
do_search in modules/search/search.module
Do a query on the full-text search index for a word or words.
drupal_get_installed_schema_version in includes/install.inc
Returns the currently installed schema version for a module.
filter_admin_delete in modules/filter/filter.admin.inc
Menu callback; confirm deletion of a format. See alsofilter_admin_delete_submit()
filter_admin_format_form_validate in modules/filter/filter.admin.inc
Validate filter format form submissions.
filter_formats in modules/filter/filter.module
Извлекает список форматов ввода.
filter_list_format in modules/filter/filter.module
Возвращает список форматов ввода для выбранного формата.
forum_get_forums in modules/forum/forum.module
Returns a list of all forums for a given taxonomy id
forum_get_topics in modules/forum/forum.module
forum_load in modules/forum/forum.module
Implementation of hook_load().
forum_taxonomy in modules/forum/forum.module
Implementation of hook_taxonomy().
hook_load in developer/hooks/node.php
Загружает информацию специфичную для типа ноды.
hook_update_index in developer/hooks/core.php
Обновляет полнотекстовый индекс Друпала для данного модуля.
hook_update_N in developer/hooks/install.php
Производит обновление таблиц БД, необходимое для единичного обновления модуля.
language_list in includes/bootstrap.inc
Формирует список установленных языков, индексированных по указанному ключу
list_themes in includes/theme.inc
Возвращает список доступных для использования на данный момент тем.
locale in modules/locale/locale.module
Provides interface translation services.
locale_batch_by_component in includes/locale.inc
Подготовка пакетной обработки при инсталяции модулей или включении темы. Она импортирует переводы для недавно добавленных компонентов на всех языках, уже настроенных на сайте.
locale_batch_by_language in includes/locale.inc
Подготовка к пакетному импорту переводов для всех включенных модулей данного языка
locale_languages_edit_form in includes/locale.inc
Editing screen for a particular language.
locale_languages_edit_form_validate in includes/locale.inc
Validate the language editing form. Reused for custom language addition too.
locale_translate_delete_page in includes/locale.inc
String deletion confirmation page.
locale_translate_edit_form in includes/locale.inc
User interface for string editing.
locale_translate_overview_screen in includes/locale.inc
Overview screen for translations.
locale_uninstall in modules/locale/locale.install
Реализация hook_uninstall().
locale_update_6000 in modules/locale/locale.install
{locales_meta} table became {languages}.
module_enable in includes/module.inc
Включает данный список модулей.
module_list in includes/module.inc
Генерирует список всех загруженных модулей. В ходе инициализации (бутстрапа), возвращает только жизненно важные модули. Смотри bootstrap.inc
node_access_example_nodeapi in developer/examples/node_access_example.module
Реализация hook_nodeapi().
node_access_rebuild in modules/node/node.module
Rebuild the node access database. This is occasionally needed by modules that make system-wide changes to access levels.
node_admin_nodes in modules/node/node.admin.inc
Form builder: Builds the node administration overview.
node_assign_owner_action_form in modules/node/node.module
node_example_load in developer/examples/node_example.module
Реализация hook_load().
node_feed in modules/node/node.module
A generic function for generating RSS feeds from a set of nodes.
node_last_changed in modules/node/node.module
node_last_viewed in modules/node/node.module
Retrieves the timestamp at which the current user last viewed the specified node.
node_load in modules/node/node.module
Загружает объект ноды из базы данных.
node_page_default in modules/node/node.module
Menu callback; Generate a listing of promoted nodes.
node_revision_list in modules/node/node.module
Return a list of all the existing revision numbers.
node_title_list in modules/node/node.module
Gather a listing of links to nodes.
node_update_index in modules/node/node.module
Реализация hook_update_index().
openid_user_identities in modules/openid/openid.pages.inc
Menu callback; Manage OpenID identities for the specified user.
openid_verify_assertion in modules/openid/openid.module
Attempt to verify the response received from the OpenID Provider.
path_admin_overview in modules/path/path.admin.inc
Return a listing of all defined URL aliases. When filter key passed, perform a standard search on the given key, and return the list of matching URL aliases.
poll_cron in modules/poll/poll.module
Реализация hook_cron().
poll_load in modules/poll/poll.module
Implementation of hook_load().
poll_page in modules/poll/poll.pages.inc
Menu callback to provide a simple list of all polls available.
poll_votes in modules/poll/poll.pages.inc
Callback for the 'votes' tab for polls you can see other votes on
profile_admin_overview in modules/profile/profile.admin.inc
Form builder to display a listing of all editable profile fields. See alsoprofile_admin_overview_submit()
profile_admin_settings_autocomplete in modules/profile/profile.admin.inc
Retrieve a pipe delimited string of autocomplete suggestions for profile categories
profile_autocomplete in modules/profile/profile.pages.inc
Callback to allow autocomplete of profile text fields.
profile_block in modules/profile/profile.module
Реализация hook_block().
profile_browse in modules/profile/profile.pages.inc
Menu callback; display a list of user information.
profile_categories in modules/profile/profile.module
profile_field_delete in modules/profile/profile.admin.inc
Menu callback; deletes a field from all user profiles.
profile_form_profile in modules/profile/profile.module
profile_load_profile in modules/profile/profile.module
profile_save_profile in modules/profile/profile.module
profile_validate_profile in modules/profile/profile.module
profile_view_profile in modules/profile/profile.module
search_index in modules/search/search.module
Обновляет полнотекстовый поисковый индекс для указанного элемента.
search_nodeapi in modules/search/search.module
Implementation of hook_nodeapi().
search_update_totals in modules/search/search.module
This function is called on shutdown to ensure that search_total is always up to date (even if cron times out or otherwise fails).
sess_read in includes/session.inc
statistics_access_log in modules/statistics/statistics.admin.inc
Menu callback; Displays recent page accesses.
statistics_node_tracker in modules/statistics/statistics.pages.inc
statistics_recent_hits in modules/statistics/statistics.admin.inc
Menu callback; presents the 'recent hits' page.
statistics_top_pages in modules/statistics/statistics.admin.inc
Menu callback; presents the 'top pages' page.
statistics_top_referrers in modules/statistics/statistics.admin.inc
Menu callback; presents the 'referrer' page.
statistics_top_visitors in modules/statistics/statistics.admin.inc
Menu callback; presents the 'top visitors' page.
statistics_user_tracker in modules/statistics/statistics.pages.inc
system_actions_configure in modules/system/system.module
Menu callback. Create the form for configuration of a single action.
system_actions_manage in modules/system/system.module
Menu callback. Display an overview of available and configured actions.
system_cron in modules/system/system.module
Реализация hook_cron().
system_get_files_database in modules/system/system.module
Retrieves the current status of an array of files in the system table.
system_modules_uninstall in modules/system/system.admin.inc
Builds a form of currently disabled modules. See alsosystem_modules_uninstall_validate()
system_sql in modules/system/system.admin.inc
Menu callback: return information about the database.
system_update_6018 in modules/system/system.install
Add HTML corrector to HTML formats or replace the old module if it was in use.
system_update_6034 in modules/system/system.install
Rename permission 'administer access control' to 'administer permissions'.
system_update_6039 in modules/system/system.install
Rename permissions 'edit foo content' to 'edit any foo content'. Also update poll module permission 'create polls' to 'create poll content'.
system_update_6045 in modules/system/system.install
Update blog, book and locale module permissions.
taxonomy_autocomplete in modules/taxonomy/taxonomy.pages.inc
Вспомогательная функция для автозаполнения формы с терминами таксономии
taxonomy_del_vocabulary in modules/taxonomy/taxonomy.module
Удаляет указанный словарь.
taxonomy_form_alter in modules/taxonomy/taxonomy.module
Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
taxonomy_get_children in modules/taxonomy/taxonomy.module
Находит все дочерние термины данного термина.
taxonomy_get_parents in modules/taxonomy/taxonomy.module
Находит всех родителей данного идентификатора термина по его ID.
taxonomy_get_related in modules/taxonomy/taxonomy.module
Find all term objects related to a given term ID.
taxonomy_get_synonym_root in modules/taxonomy/taxonomy.module
Return the term object that has the given string as a synonym.
taxonomy_get_term in modules/taxonomy/taxonomy.module
Возвращает объект термина, соответствующий указанному идентификатору.
taxonomy_get_term_by_name in modules/taxonomy/taxonomy.module
Try to map a string to an existing term, as for glossary use.
taxonomy_get_tree in modules/taxonomy/taxonomy.module
Создает иерархическое представление словаря.
taxonomy_get_vocabularies in modules/taxonomy/taxonomy.module
Возвращает массив объектов всех словарей.
taxonomy_node_get_terms in modules/taxonomy/taxonomy.module
Находит все термины, которые связаны с данной нодой, и сортирует их по словарю и весу термина.
taxonomy_node_get_terms_by_vocabulary in modules/taxonomy/taxonomy.module
Находит все термины, которые связаны с данной нодой, в одном словаре.
taxonomy_overview_terms in modules/taxonomy/taxonomy.admin.inc
Form builder for the taxonomy terms overview.
taxonomy_render_nodes in modules/taxonomy/taxonomy.module
Принимает результат вызова pager_query(), такой как, например, возвращает taxonomy_select_nodes(), и форматирует каждую ноду вместе с листалкой страниц.
taxonomy_term_count_nodes in modules/taxonomy/taxonomy.module
Считает число опубликованных нод, содержащих терм.
taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
Коллбэк меню; отображает все ноды, связанные с термином таксономии.
taxonomy_vocabulary_load in modules/taxonomy/taxonomy.module
Возвращает объект словаря таксономии.
template_preprocess_forum_topic_navigation in modules/forum/forum.module
Preprocess variables to format the next/previous forum topic navigation links.
tracker_page in modules/tracker/tracker.pages.inc
Menu callback. Prints a listing of active nodes on the site.
translation_node_get_translations in modules/translation/translation.module
Get all nodes in a translation set, represented by $tnid.
update_fix_compatibility in ./update.php
Disable anything in the {system} table that is not compatible with the current version of Drupal core.
upload_delete in modules/upload/upload.module
upload_file_download in modules/upload/upload.module
Implementation of hook_file_download().
upload_load in modules/upload/upload.module
user_access in modules/user/user.module
Определяет, имеет ли пользователь необходимое право доступа.
user_admin_access in modules/user/user.admin.inc
Menu callback: list all access rules
user_admin_access_delete_confirm in modules/user/user.admin.inc
Menu callback: delete an access rule See alsouser_admin_access_delete_confirm_submit()
user_admin_account in modules/user/user.admin.inc
Form builder; User administration page. See alsouser_admin_account_validate()
user_admin_perm in modules/user/user.admin.inc
Menu callback: administer permissions. See alsouser_admin_perm_submit()
user_admin_perm_submit in modules/user/user.admin.inc
user_admin_role in modules/user/user.admin.inc
Menu callback: administer roles. See alsouser_admin_role_validate()
user_autocomplete in modules/user/user.pages.inc
Menu callback; Retrieve a JSON object containing autocomplete suggestions for existing users.
user_block in modules/user/user.module
Реализация hook_block().
user_get_authmaps in modules/user/user.module
Discover which external authentication module(s) authenticated a username.
user_is_blocked in modules/user/user.module
Checks for usernames blocked by user administration.
user_load in modules/user/user.module
Загружает объект пользователя.
user_roles in modules/user/user.module
Возвращает массив ролей, соответствующих указанным условиям.
user_search in modules/user/user.module
Реализация hook_search().
variable_init in includes/bootstrap.inc
Загружает таблицу "постоянных" переменных.
_comment_delete_thread in modules/comment/comment.admin.inc
Perform the actual deletion of a comment and all its replies.
_comment_load in modules/comment/comment.module
Load the entire comment by cid.
_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.
_dblog_get_message_types in modules/dblog/dblog.module
_filter_tips in modules/filter/filter.module
Helper function for fetching filter tips.
_forum_user_last_visit in modules/forum/forum.module
_locale_export_get_strings in includes/locale.inc
Generates a structured array of all strings with translations in $language, if given. This array can be used to generate an export of the string in the database.
_locale_import_po in includes/locale.inc
Parses Gettext Portable Object file information and inserts into 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
Создает(заменяет) JavaScript-файл перевода для указанного языка.
_locale_translate_seek in includes/locale.inc
Perform a string search and display results in a table
_node_types_build in modules/node/node.module
Builds and returns the list of available node types.
_taxonomy_term_children in modules/taxonomy/taxonomy.module
Helper for taxonomy_term_count_nodes(). Used to find out which terms are children of a parent term.
_trigger_get_hook_actions in modules/trigger/trigger.admin.inc
Get the actions that have already been defined for this type-hook-op combination.
_trigger_get_hook_aids in modules/trigger/trigger.module
Get the aids of actions to be executed for a hook-op combination.
_update_cache_get in modules/update/update.module
Поиск данных из индивидуальной таблицы обновления статуса кэша.

Код

<?php
function db_fetch_object($result) {
  if ($result) {
    return mysql_fetch_object($result);
  }
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему