コード例 #1
0
 /**
  * Retrieves Soap Actions from cache
  *
  * @param string $service
  *
  * @return array|null Soap Action array of strings, or NULL if action not cached
  */
 private function getCachedSoapActions($service)
 {
     if (!$this->client->isCacheEnabled()) {
         return null;
     }
     $cache = $this->client->cache;
     $soapActions = $cache->get($service . '_soap_actions');
     return $soapActions;
 }
コード例 #2
0
 public function getCachedSecurityToken($service, &$securityToken)
 {
     if ($this->client->isCacheEnabled()) {
         $cacheKey = $this->getSecurityTokenCacheKey($service);
         $isDefined = $this->client->cache->exists($cacheKey);
         if ($isDefined) {
             $securityToken = $this->client->cache->get($cacheKey);
         }
         return $isDefined;
     }
     return false;
 }