Code registry

  1. drupal
    1. drupal7

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.

Funktionen & Methoden

NameBeschreibung
drupal_autoload_classConfirm that a class is available.
drupal_autoload_interfaceConfirm that an interface is available.
drupal_function_existsConfirm that a function is available.
registry_get_parsed_filesReturn the list of files in registry_file
registry_rebuildRescan all enabled modules and rebuild the registry.
_registry_check_codeHelper to check for a resource in the registry.
_registry_get_resource_nameDerive the name of the next resource in the token stream.
_registry_parse_fileParse a file and save its function and class listings.
_registry_parse_filesParse all files that have changed since the registry was last built, and save their function and class listings.
_registry_rebuild
_registry_skip_bodySkip the body of a code block, as defined by { and }.

includes/registry.inc, line 9

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen