class ThemeRegistry

Builds the run-time theme registry.

Extends DrupalCacheArray to allow the theme registry to be accessed as a complete registry, while internally caching only the parts of the registry that are actually in use on the site. On cache misses the complete theme registry is loaded and used to update the run-time cache.

Hierarchy

Expanded class hierarchy of ThemeRegistry

File

includes/theme.inc, line 365
The theme system, which controls the output of Drupal.

Members

Name Modifiers Type Description
DrupalCacheArray::$bin protected property A bin to pass to cache_set() and cache_get().
DrupalCacheArray::$cid protected property A cid to pass to cache_set() and cache_get().
DrupalCacheArray::$keysToPersist protected property An array of keys to add to the cache at the end of the request.
DrupalCacheArray::$storage protected property Storage for the data itself.
DrupalCacheArray::offsetSet public function Implements ArrayAccess::offsetSet().
DrupalCacheArray::offsetUnset public function Implements ArrayAccess::offsetUnset().
DrupalCacheArray::persist protected function Flags an offset value to be written to the persistent cache.
DrupalCacheArray::__destruct public function Destructs the DrupalCacheArray object.
ThemeRegistry::$completeRegistry protected property The complete theme registry array.
ThemeRegistry::$persistable protected property Whether the partial registry can be persisted to the cache.
ThemeRegistry::initializeRegistry function Initializes the full theme registry.
ThemeRegistry::offsetExists public function Implements ArrayAccess::offsetExists(). Overrides DrupalCacheArray::offsetExists
ThemeRegistry::offsetGet public function Implements ArrayAccess::offsetGet(). Overrides DrupalCacheArray::offsetGet
ThemeRegistry::resolveCacheMiss public function Resolves a cache miss. Overrides DrupalCacheArray::resolveCacheMiss
ThemeRegistry::set public function Writes a value to the persistent cache immediately. Overrides DrupalCacheArray::set
ThemeRegistry::__construct function Constructs a DrupalCacheArray object. Overrides DrupalCacheArray::__construct

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/class/ThemeRegistry/7.x