public function ECKCache::get in Entity Construction Kit (ECK) 7.3
Same name and namespace in other branches
- 7.2 eck.classes.inc \ECKCache::get()
Get.
File
- ./
eck.classes.inc, line 922 - Classes for all the different objects used in ECK.
Class
Code
public function get() {
if ($this->noCache) {
return NULL;
}
if ($this->data) {
return $this->data;
}
else {
$cached_data = cache_get($this->id, "cache_eck");
if ($cached_data) {
$this->data = $cached_data->data;
return $this->data;
}
else {
return NULL;
}
}
}