Commit 30407050 authored by jhodgdon's avatar jhodgdon
Browse files

Issue #1831646 by miro_dietiker: Make docs comply with rename of DrupalCacheArray to CacheArray

parent 59549a89
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
* static caches of that same data. * static caches of that same data.
* *
* Note that array_* functions do not work with ArrayAccess. Systems using * Note that array_* functions do not work with ArrayAccess. Systems using
* DrupalCacheArray should use this only internally. If providing API functions * CacheArray should use this only internally. If providing API functions
* that return the full array, this can be cached separately or returned * that return the full array, this can be cached separately or returned
* directly. However since DrupalCacheArray holds partial content by design, it * directly. However since CacheArray holds partial content by design, it
* should be a normal PHP array or otherwise contain the full structure. * should be a normal PHP array or otherwise contain the full structure.
* *
* Note also that due to limitations in PHP prior to 5.3.4, it is impossible to * Note also that due to limitations in PHP prior to 5.3.4, it is impossible to
...@@ -102,7 +102,7 @@ abstract class CacheArray implements ArrayAccess { ...@@ -102,7 +102,7 @@ abstract class CacheArray implements ArrayAccess {
protected $storage = array(); protected $storage = array();
/** /**
* Constructs a DrupalCacheArray object. * Constructs a CacheArray object.
* *
* @param string $cid * @param string $cid
* The cid for the array being cached. * The cid for the array being cached.
...@@ -212,7 +212,7 @@ protected function set($data, $lock = TRUE) { ...@@ -212,7 +212,7 @@ protected function set($data, $lock = TRUE) {
} }
/** /**
* Destructs the DrupalCacheArray object. * Destructs the CacheArray object.
*/ */
public function __destruct() { public function __destruct() {
$data = array(); $data = array();
......
...@@ -22,7 +22,7 @@ class ModuleInfo extends CacheArray { ...@@ -22,7 +22,7 @@ class ModuleInfo extends CacheArray {
protected $info; protected $info;
/** /**
* Overrides DrupalCacheArray::resolveCacheMiss(). * Overrides CacheArray::resolveCacheMiss().
*/ */
function resolveCacheMiss($offset) { function resolveCacheMiss($offset) {
$data = array(); $data = array();
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
use Drupal\Core\Utility\CacheArray; use Drupal\Core\Utility\CacheArray;
/** /**
* Extends DrupalCacheArray to allow for dynamic building of the schema cache. * Extends CacheArray to allow for dynamic building of the schema cache.
*/ */
class SchemaCache extends CacheArray { class SchemaCache extends CacheArray {
...@@ -23,7 +23,7 @@ public function __construct() { ...@@ -23,7 +23,7 @@ public function __construct() {
} }
/** /**
* Overrides DrupalCacheArray::resolveCacheMiss(). * Overrides CacheArray::resolveCacheMiss().
*/ */
protected function resolveCacheMiss($offset) { protected function resolveCacheMiss($offset) {
$complete_schema = drupal_get_complete_schema(); $complete_schema = drupal_get_complete_schema();
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
/** /**
* Builds the run-time theme registry. * Builds the run-time theme registry.
* *
* Extends DrupalCacheArray to allow the theme registry to be accessed as a * Extends CacheArray to allow the theme registry to be accessed as a
* complete registry, while internally caching only the parts of the registry * complete registry, while internally caching only the parts of the registry
* that are actually in use on the site. On cache misses the complete * 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. * theme registry is loaded and used to update the run-time cache.
......
...@@ -51,7 +51,7 @@ public function __construct($langcode, $context, $stringStorage) { ...@@ -51,7 +51,7 @@ public function __construct($langcode, $context, $stringStorage) {
} }
/** /**
* Overrides DrupalCacheArray::resolveCacheMiss(). * Overrides CacheArray::resolveCacheMiss().
*/ */
protected function resolveCacheMiss($offset) { protected function resolveCacheMiss($offset) {
$translation = $this->stringStorage->findTranslation(array( $translation = $this->stringStorage->findTranslation(array(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment