Code registry

The code registry engine.

Drupal maintains an internal registry of all functions or classes in the system, allowing it to lazy-load code files as needed (reducing the amount of code that must be parsed on each request). The list of included files is cached per menu callback for subsequent loading by the menu router. This way, a given page request will have all the code it needs but little else, minimizing time spent parsing unneeded code.

Functions

Namesort iconLocationDescription
drupal_autoload_classdrupal/includes/bootstrap.incConfirm that a class is available.
drupal_autoload_interfacedrupal/includes/bootstrap.incConfirm that an interface is available.
drupal_function_existsdrupal/includes/bootstrap.incConfirm that a function is available.
registry_cache_hook_implementationsdrupal/includes/bootstrap.incSave hook implementations cache.
registry_cache_path_filesdrupal/includes/bootstrap.incSave the files required by the registry for this path.
registry_get_parsed_filesdrupal/includes/registry.incReturn the list of files in registry_file
registry_load_path_filesdrupal/includes/bootstrap.incregistry_load_path_files
registry_mark_codedrupal/includes/bootstrap.incCollect the resources used for this request.
registry_rebuilddrupal/includes/bootstrap.incRescan all enabled modules and rebuild the registry.
_registry_check_codedrupal/includes/bootstrap.incHelper for registry_check_{interface, class}.
_registry_get_resource_namedrupal/includes/registry.incDerive the name of the next resource in the token stream.
_registry_parse_filedrupal/includes/registry.incParse a file and save its function and class listings.
_registry_parse_filesdrupal/includes/registry.incParse all files that have changed since the registry was last built, and save their function and class listings.
_registry_rebuilddrupal/includes/registry.inc@see registry_rebuild.
_registry_skip_bodydrupal/includes/registry.incSkip the body of a code block, as defined by { and }.