| 7 bootstrap.inc | public DrupalCacheArray::__construct($cid, $bin) |
Constructs a DrupalCacheArray object.
Parameters
$cid: The cid for the array being cached.
$bin: The bin to cache the array.
File
- includes/
bootstrap.inc, line 317 - Functions that need to be loaded on every Drupal request.
Code
public function __construct($cid, $bin) {
$this->cid = $cid;
$this->bin = $bin;
if ($cached = cache_get($this->cid, $this->bin)) {
$this->storage = $cached->data;
}
}
Login or register to post comments