[ Index ] |
|
Code source de Drupal 5.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 950 lignes (29 kb) |
Inclus ou requis: | 5 fois |
Référencé: | 0 fois |
Nécessite: | 7 fichiers includes/unicode.inc includes/common.inc modules/filter/filter.module includes/theme.inc includes/path.inc includes/module.inc includes/database.inc |
timer_start($name) X-Ref |
Start the timer with the specified name. If you start and stop the same timer multiple times, the measured intervals will be accumulated. param: name |
timer_read($name) X-Ref |
Read the current timer value without stopping the timer. param: name return: |
timer_stop($name) X-Ref |
Stop the timer with the specified name. param: name return: |
conf_path() X-Ref |
Find the appropriate configuration directory. Try finding a matching configuration directory by stripping the website's hostname from left to right and pathname from right to left. The first configuration file found will be used; the remaining will ignored. If no configuration file is found, return a default value '$confdir/default'. Example for a fictitious site installed at http://www.drupal.org:8080/mysite/test/ the 'settings.php' is searched in the following directories: 1. $confdir/8080.www.drupal.org.mysite.test 2. $confdir/www.drupal.org.mysite.test 3. $confdir/drupal.org.mysite.test 4. $confdir/org.mysite.test 5. $confdir/8080.www.drupal.org.mysite 6. $confdir/www.drupal.org.mysite 7. $confdir/drupal.org.mysite 8. $confdir/org.mysite 9. $confdir/8080.www.drupal.org 10. $confdir/www.drupal.org 11. $confdir/drupal.org 12. $confdir/org 13. $confdir/default |
drupal_unset_globals() X-Ref |
Unsets all disallowed global variables. See $allowed for what's allowed. |
conf_init() X-Ref |
Loads the configuration and sets the base URL, cookie domain, and session name correctly. |
drupal_get_filename($type, $name, $filename = NULL) X-Ref |
Returns 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. This function plays a key role in allowing Drupal's resources (modules and themes) to be located in different places depending on a site's configuration. For example, a module 'foo' may legally be be located in any of these three places: modules/foo/foo.module sites/all/modules/foo/foo.module sites/example.com/modules/foo/foo.module Calling drupal_get_filename('module', 'foo') will give you one of the above, depending on where the module is located. param: $type param: $name param: $filename return: |
variable_init($conf = array() X-Ref |
Load the persistent variable table. The variable table is composed of values that have been saved in the table with variable_set() as well as those explicitly specified in the configuration file. |
variable_get($name, $default) X-Ref |
Return a persistent variable. param: $name param: $default return: |
variable_set($name, $value) X-Ref |
Set a persistent variable. param: $name param: $value |
variable_del($name) X-Ref |
Unset a persistent variable. param: $name |
page_get_cache() X-Ref |
Retrieve the current page from the cache. Note: we do not serve cached pages when status messages are waiting (from a redirected form submission which was completed). |
bootstrap_invoke_all($hook) X-Ref |
Call all init or exit hooks without including all modules. param: $hook |
drupal_load($type, $name) X-Ref |
Includes a file with the provided type and name. This prevents including a theme, engine, module, etc., more than once. param: $type param: $name return: |
drupal_page_header() X-Ref |
Set HTTP headers in preparation for a page response. Authenticated users are always given a 'no-cache' header, and will fetch a fresh page on every request. This prevents authenticated users seeing locally cached pages that show them as logged out. |
drupal_page_cache_header($cache) X-Ref |
Set HTTP headers in preparation for a cached page response. The general approach here is that anonymous users can keep a local cache of the page, but must revalidate it on every request. Then, they are given a '304 Not Modified' response as long as they stay logged out and the page has not been modified. |
bootstrap_hooks() X-Ref |
Define the critical hooks that force modules to always be loaded. |
drupal_unpack($obj, $field = 'data') X-Ref |
Unserializes and appends elements from a serialized string. param: $obj param: $field |
referer_uri() X-Ref |
Return the URI of the referring page. |
check_plain($text) X-Ref |
Encode special characters in a plain-text string for display as HTML. |
request_uri() X-Ref |
Since $_SERVER['REQUEST_URI'] is only available on Apache, we generate an equivalent using other environment variables. |
watchdog($type, $message, $severity = WATCHDOG_NOTICE, $link = NULL) X-Ref |
Log a system message. param: $type param: $message param: $severity param: $link |
drupal_set_message($message = NULL, $type = 'status') X-Ref |
Set a message which reflects the status of the performed operation. If the function is called with no arguments, this function returns all set messages without clearing them. param: $message param: $type |
drupal_get_messages($type = NULL, $clear_queue = TRUE) X-Ref |
Return all messages that have been set. param: $type param: $clear_queue return: |
drupal_is_denied($type, $mask) X-Ref |
Perform an access check for a given mask and rule type. Rules are usually created via admin/user/rules page. If any allow rule matches, access is allowed. Otherwise, if any deny rule matches, access is denied. If no rule matches, access is allowed. param: $type string param: $mask string return: bool |
drupal_anonymous_user($session = '') X-Ref |
Generates a default anonymous $user object. return: Object - the user object. |
drupal_bootstrap($phase) X-Ref |
A 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 loading anything else, you can include bootstrap.inc, and call drupal_bootstrap(DRUPAL_BOOTSTRAP_DATABASE). param: $phase |
_drupal_bootstrap($phase) X-Ref |
Pas de description |
_drupal_cache_init($phase) X-Ref |
Initialize the caching strategy, which loads at different stages within Drupal's bootstrap process. |
drupal_maintenance_theme() X-Ref |
Enables 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 loaded. For example, theme_page() is unavailable and theme_maintenance_page() must be used in its place. |
get_t() X-Ref |
Return the name of the localisation function. Use in code that needs to run both during installation and normal operation. |
Généré le : Fri Nov 30 16:20:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |