国外设计欣赏网站 - DOOOOR.com

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,微信登陆

搜索

[Drupal教程] Drupal的组成部分 10.全局变量

[复制链接]
发表于 11-29-2011 07:40 | 显示全部楼层 |阅读模式
名称sort icon位置描述
$active_dbdeveloper/ globals.phpActive database connection.
See alsodb_set_active()
$base_pathdeveloper/ globals.phpThe base path of the drupal installation. At least will default to /.
See alsoconf_init()
$base_rootdeveloper/ globals.phpThe root URL of the host excludes the path.
See alsoconf_init()
$base_theme_infodeveloper/ globals.phpAn array of objects that reperesent the base theme. For documentation of the
theme object see 0 _3 K+ Z! i" ? function is useful to initialize a theme when no database is present." href="http://www.drupaluser.org/api/function/_init_theme/6" style="color: rgb(0, 113, 179); text-decoration: none; ">_init_theme().
See also_init_theme()
$base_urldeveloper/ globals.phpThe base URL of the drupal installation.
See alsoconf_init()
$channeldeveloper/ globals.phpAn associative array containing title, link, description and other keys.
The link should be an absolute URL.
See alsoaggregator_element_start()
$confdeveloper/ globals.phpThe path to the configuration directory as set byconf_path().
$cookie_domaindeveloper/ globals.phpThe domain to be used form session cookies.
$custom_themedeveloper/ globals.phpName of custom theme to override default theme.
See alsoinit_theme()
$db_prefixdeveloper/ globals.phpThe prefix to be placed on all database tables.
$db_typedeveloper/ globals.phpThe type of database being used.
$db_urldeveloper/ globals.phpThe url of the database. Thorough documentation provided in default.settings.php.
$elementdeveloper/ globals.phpStructured array describing the data to be rendered.
See alsoaggregator_element_start()
$forum_topic_list_headerdeveloper/ globals.phpAn array of topic header information.
$iddeveloper/ globals.phpActive statistics record id.
$imagedeveloper/ globals.phpCurrent image tag used by aggregator.
$installed_profiledeveloper/ globals.phpThe name of the profile that has just been installed.
$install_localedeveloper/ globals.phpThe locale to use during installation
See alsost()
$itemdeveloper/ globals.phpGeneral string or array.
See alsoaggregator_element_start()
$itemsdeveloper/ globals.phpArray of items used by aggregator.
See alsoaggregator_element_start()
$languagedeveloper/ globals.phpAn object containing the information for the active language.
$last_resultdeveloper/ globals.phpResource of the query executed.
$menu_admindeveloper/ globals.phpBoolean indicating that a menu administrator is running the menu access check.
$multibytedeveloper/ globals.phpThe current multibyte mode.
Possible values: UNICODE_ERROR, UNICODE_SINGLEBYTE, UNICODE_MULTIBYTE.
$niddeveloper/ globals.phpActive blog node id.
$pager_page_arraydeveloper/ globals.phpResult of pager_query() that is utilized by other functions.
$pager_totaldeveloper/ globals.phpArray of the total number of pages per pager. The key is will be 0 by defualt, but
can be specified via the $element parameter ofpager_query().
$pager_total_itemsdeveloper/ globals.phpArray of the total number of items per pager. The key is will be 0 by defualt, but
can be specified via the $element parameter ofpager_query().
$profiledeveloper/ globals.phpThe name of the currently installed profile.
$queriesdeveloper/ globals.phpArray of queries that have been executed.
$recent_activitydeveloper/ globals.phpRecent activity statistics generated bystatistics_exit().
$tagdeveloper/ globals.phpActive tag name.
See alsoaggregator_element_start()
$themedeveloper/ globals.phpName of the active theme.
$theme_enginedeveloper/ globals.phpThe active theme engine related to the active theme.
$theme_infodeveloper/ globals.phpActive theme object. For documentation of the theme object see / H1 L1 ^; R1 x2 s0 [, `- X7 j function is useful to initialize a theme when no database is present." href="http://www.drupaluser.org/api/function/_init_theme/6" style="color: rgb(0, 113, 179); text-decoration: none; ">_init_theme().
See also_init_theme()
$theme_keydeveloper/ globals.phpName of the active theme.
See alsoinit_theme()
$theme_pathdeveloper/ globals.phpPath to the active theme.
$timersdeveloper/ globals.phpStores timers that have been created by" L g4 j' N9 [ the same timer multiple times, the measured intervals will be<br />) H+ O6 y" E! T accumulated." href="http://www.drupaluser.org/api/function/timer_start/6" style="color: rgb(0, 113, 179); text-decoration: none; ">timer_start().
See alsotimer_start()
$update_free_accessdeveloper/ globals.phpAccess control for update.php script. Allows theupdate.php script to be run when
not logged in as and administrator.
$update_modedeveloper/ globals.phpDisabled caling hook_boot() and hook_exit() during the update process (update.php) since
the database is in a largely unknown state.
See alsodrupal_goto()
$usermodules/ php/ php.module
$userdeveloper/ globals.phpRepresentation of the current user. Stores preferences and other user information.
$xrds_current_servicedeveloper/ globals.phpArray used by XRDS XML parser for OpenID to track parsing state.
$xrds_open_elementsdeveloper/ globals.phpArray used by XRDS XML parser for OpenID to track parsing state.
$xrds_servicesdeveloper/ globals.phpArray used by XRDS XML parser for OpenID to track parsing state.


|2011-2026-版权声明|平台(网站)公约|DOOOOR 设计网 ( 吉ICP备2022003869号 )

GMT+8, 2-19-2025 13:54 , Processed in 0.315686 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表