Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function SchemaCache::resolveCacheMiss

Overrides DrupalCacheArray::resolveCacheMiss().

Parameters

$offset: The offset that was requested.

Return value

The value of the offset, or NULL if no value was found.

Overrides DrupalCacheArray::resolveCacheMiss

File

includes/bootstrap.inc, line 3397

Class

SchemaCache
Extends DrupalCacheArray to allow for dynamic building of the schema cache.

Code

protected function resolveCacheMiss($offset) {
 $complete_schema = drupal_get_complete_schema ();
 $value = isset($complete_schema[$offset]) ? $complete_schema[$offset] : NULL;
 $this->storage [$offset] = $value;
 $this->persist ($offset);
 return $value;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.