'Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse', 'getTokensResponse' => 'Zend_Service_DeveloperGarden_Response_SecurityTokenServer_GetTokensResponse' ); /** * does the login and return the specific response * * @return Zend_Service_DeveloperGarden_Response_SecurityTokenServer_SecurityTokenResponse */ public function getLoginToken() { $token = Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getTokenFromCache( 'securityToken' ); if ($token === null || !$token->isValid() ) { $token = $this->getSoapClient()->login('login'); Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setTokenToCache( 'securityToken', $token ); } return $token; } /** * returns the fetched token from token server * * @return Zend_Service_DeveloperGarden_Response_SecurityTokenServer_GetTokensResponse */ public function getTokens() { $token = Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::getTokenFromCache( 'getTokens' ); if ($token === null || !$token->isValid() ) { $token = $this->getSoapClient()->getTokens(array( 'serviceId' => $this->_serviceAuthId )); Zend_Service_DeveloperGarden_SecurityTokenServer_Cache::setTokenToCache( 'getTokens', $token ); } return $token; } }