/**
  * Return formatted request parameters AskArgsApi
  *
  * @since 1.9
  *
  * @return array
  */
 public function getAskArgsApiParameter($key)
 {
     if ($this->results === null) {
         $this->results = $this->formatAskArgs();
     }
     return $this->results->get($key);
 }
Пример #2
0
 /**
  * Mapping of cached content
  *
  * Returns unserialized objects and the timestamp of the cached content
  *
  * @since 1.9
  *
  * @param array $resultCache
  *
  * @return array
  */
 protected function mapping(array $resultCache)
 {
     $this->cacheSetup->set('cacheDate', isset($resultCache['time']) ? $resultCache['time'] : null);
     return isset($resultCache['result']) ? unserialize($resultCache['result']) : array();
 }