2 require_once(
'./Services/GlobalCache/classes/class.ilGlobalCache.php');
33 protected $mode = self::MODE_SINGLE;
53 public function get() {
55 if ($ilGlobalCache->isActive()) {
56 $rec = $ilGlobalCache->get($this->cache_key);
58 $rec = $this->getFromDb();
59 $ilGlobalCache->set($this->cache_key, $rec, 600);
62 $rec = $this->getFromDb();
72 protected function getFromDb() {
81 case self::FETCH_TYPE_OBJECT:
86 case self::FETCH_TYPE_ASSOC:
93 if ($this->
getMode() == self::MODE_SINGLE) {
setFetchType($fetch_type)
static getInstance($component)
Class ilGlobalCacheQueryWrapper.
__construct($cache_key, $query, $fetch_type=self::FETCH_TYPE_OBJECT, $mode=self::MODE_SINGLE)
Create styles array
The data for the language used.