bootstrap.inc

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

Версия 1.145.2.14 (checked in on 2009/04/30 at 00:13:48 by drumm)

Functions that need to be loaded on every Drupal request.

Константы

ИмяОписание
CACHE_AGGRESSIVEIndicates that page caching is using 'aggressive' mode. This bypasses loading any modules for additional speed, which may break functionality in modules that expect to be run on each page load.
CACHE_DISABLEDПоказывает что кэширование данной страницы отключено.
CACHE_NORMALПоказывает что кэширование для данной страницы включено и используется нормальный режим кэширования.
CACHE_PERMANENTIndicates that the item should never be removed unless explicitly told to using cache_clear_all() with a cache ID.
CACHE_TEMPORARYУказывает, что данный элемент должен быть удален при следующей основной чистке кэша.
DRUPAL_ANONYMOUS_RIDID роли анонимного пользователя; должно соответствовать ID, содержащемуся в таблице 'role'.
DRUPAL_AUTHENTICATED_RIDID роли зарегистрированного пользователя; должно соответствовать ID, содержащемуся в таблице 'role'.
DRUPAL_BOOTSTRAP_ACCESSЧетвертый этап начальной загрузки: идентифицировать и отказывать в обслуживании забанненым хостам.
DRUPAL_BOOTSTRAP_CONFIGURATIONПервый этап начальной загрузки: инициализация конфигурации.
DRUPAL_BOOTSTRAP_DATABASEТретий этап начальной загрузки: инициализация уровня базы данных.
DRUPAL_BOOTSTRAP_EARLY_PAGE_CACHESecond bootstrap phase: try to call a non-database cache fetch routine.
DRUPAL_BOOTSTRAP_FULLFinal bootstrap phase: Drupal is fully loaded; validate and fix input data.
DRUPAL_BOOTSTRAP_LATE_PAGE_CACHESixth bootstrap phase: load bootstrap.inc and module.inc, start the variable system and try to serve a page from the cache.
DRUPAL_BOOTSTRAP_PATHSeventh bootstrap phase: set $_GET['q'] to Drupal path of request.
DRUPAL_BOOTSTRAP_SESSIONПятый этап начальной загрузки: инициализация сессии обработки.
WATCHDOG_ERRORIndicates an error-level watchdog event; could be indicative of an attempt to compromise the security of the site, or a serious system error.
WATCHDOG_NOTICEIndicates a notice-level watchdog event; these are normally notifications of normal system events that have occurred and can usually be safely ignored.
WATCHDOG_WARNINGIndicates a warning-level watchdog event; this can be triggered by an error in a module that does not impact the overall functionality of the site.

Функции

ИмяОписание
bootstrap_hooksDefine the critical hooks that force modules to always be loaded.
bootstrap_invoke_allCall all init or exit hooks without including all modules.
check_plainКонвертирует специальные символы в строку простого текста для показа как HTML.
conf_initЗагружает конфигурацию и устанавливает правильные базовый URL, куки и сессии.
conf_pathFind the appropriate configuration directory.
drupal_anonymous_userФормирует объект $user со значениями по умолчанию для анонимного пользователя.
drupal_bootstrapA string describing a phase of Drupal to load. Each phase adds to the previous one, so invoking a later phase automatically runs the earlier phases too. The most important usage is that if you want to access the Drupal database from a script without...
drupal_get_filenameReturns and optionally sets the filename for a system item (module, theme, etc.). The filename, whether provided, cached, or retrieved from the database, is only returned if the file exists.
drupal_get_messagesReturn all messages that have been set.
drupal_is_deniedPerform an access check for a given mask and rule type. Rules are usually created via admin/user/rules page.
drupal_loadIncludes a file with the provided type and name. This prevents including a theme, engine, module, etc., more than once.
drupal_maintenance_themeEnables use of the theme system without requiring database access. Since there is not database access no theme will be enabled and the default themeable functions will be called. Some themeable functions can not be used without the full Drupal API...
drupal_page_cache_headerSet HTTP headers in preparation for a cached page response.
drupal_page_headerSet HTTP headers in preparation for a page response.
drupal_set_messageВыводит сообщение пользователю.
drupal_unpackUnserializes and appends elements from a serialized string.
drupal_unset_globalsUnsets all disallowed global variables. See $allowed for what's allowed.
drupal_validate_utf8Проверяет является ли кодировкой строки UTF-8.
drupal_valid_http_hostПроверяет корректность имени хоста (например, $_SERVER['HTTP_HOST']).
get_tВозвращает имя применяемой функции локализации (перевода строк).
page_get_cacheRetrieve the current page from the cache.
referer_uriReturn the URI of the referring page.
request_uriТак как $_SERVER['REQUEST_URI'] доступно только в Apache, мы генерируем эквивалент на основании других переменных окружения.
timer_readRead the current timer value without stopping the timer.
timer_startStart the timer with the specified name. If you start and stop the same timer multiple times, the measured intervals will be accumulated.
timer_stopStop the timer with the specified name.
variable_delУдаляет хранимую переменную.
variable_getВозвращает постоянную переменную.
variable_initЗагружает таблицу "постоянных" переменных.
variable_setУстанавливает постоянную переменную.
watchdogЗаписывает сообщение в системный лог.
_drupal_bootstrap
_drupal_cache_initInitialize the caching strategy, which loads at different stages within Drupal's bootstrap process.
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

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