function DrupalCacheArray::__construct

Constructs a DrupalCacheArray object.

Parameters

$cid: The cid for the array being cached.

$bin: The bin to cache the array.

1 call to DrupalCacheArray::__construct()
SchemaCache::__construct in includes/bootstrap.inc
Constructs a SchemaCache object.
2 methods override DrupalCacheArray::__construct()
SchemaCache::__construct in includes/bootstrap.inc
Constructs a SchemaCache object.
ThemeRegistry::__construct in includes/theme.inc
Constructs a DrupalCacheArray object.

File

includes/bootstrap.inc, line 350

Class

DrupalCacheArray
Provides a caching wrapper to be used in place of large array structures.

Code

public function __construct($cid, $bin) {
    $this->cid = $cid;
    $this->bin = $bin;
    if ($cached = cache_get($this->cid, $this->bin)) {
        $this->storage = $cached->data;
    }
}

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