Esempio n. 1
0
 /**
  * Try to load the combinations from cache.
  *
  * @return bool
  */
 protected function saveToCache()
 {
     // Pretty print only came available with php 5.4.
     $flags = 0;
     if (defined('JSON_PRETTY_PRINT')) {
         $flags = JSON_PRETTY_PRINT;
     }
     return $this->container->getCache()->save($this->calculateCacheKey(), json_encode(array('information' => $this->information, 'tableMap' => $this->tableMap, 'parentMap' => $this->parentMap, 'childMap' => $this->childMap), $flags));
 }
Esempio n. 2
0
 /**
  * Try to load the combinations from cache.
  *
  * @return bool
  */
 protected function saveToCache()
 {
     // Pretty print only came available with php 5.4.
     $flags = 0;
     if (defined('JSON_PRETTY_PRINT')) {
         $flags = JSON_PRETTY_PRINT;
     }
     return $this->container->getCache()->save($this->calculateCacheKey(), json_encode(array('backendMenu' => $this->backendMenu, 'languageStrings' => $this->languageStrings), $flags));
 }