當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Zend_Service_Amazon_Abstract類代碼示例

本文整理匯總了PHP中Zend_Service_Amazon_Abstract的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Service_Amazon_Abstract類的具體用法?PHP Zend_Service_Amazon_Abstract怎麽用?PHP Zend_Service_Amazon_Abstract使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Zend_Service_Amazon_Abstract類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructor
  *
  * The default region is us-east-1. Use the region to set it to one of the regions that is build-in into ZF.
  * To add a new AWS region use the setEndpoint() method.
  *
  * @param string $accessKey
  * @param string $secretKey
  * @param string $region
  */
 public function __construct($accessKey = null, $secretKey = null, $region = null)
 {
     parent::__construct($accessKey, $secretKey, $region);
     if (null !== $region) {
         $this->_setEndpoint($region);
     }
 }
開發者ID:yonetici,項目名稱:pimcore-coreshop-demo,代碼行數:17,代碼來源:Sqs.php

示例2: __construct

 /**
  * Create Amazon SES client.
  *
  * @param  string        $access_key         (Optional) Override the default Access Key
  * @param  string        $secret_key         (Optional) Override the default Secret Key
  * @param  Zend_Uri_Http $endpoint  Endpoint (Optional) Endpoint Url
  * @return void
  */
 public function __construct($accessKey = null, $secretKey = null, Zend_Uri_Http $endpoint = null)
 {
     parent::__construct($accessKey, $secretKey);
     if (!is_null($endpoint)) {
         $this->setEndpoint($endpoint);
     }
 }
開發者ID:NicholasMiller,項目名稱:Zend_Servce_Amazon_Ses,代碼行數:15,代碼來源:Ses.php

示例3: __construct

 /**
  * Create Amazon client.
  *
  * @param  string $access_key       Override the default Access Key
  * @param  string $secret_key       Override the default Secret Key
  * @param  string $region           Override the default Region
  * @return void
  */
 public function __construct($accessKey = null, $secretKey = null, $region = null)
 {
     $ini = Zend_Registry::get('config');
     if (!$accessKey || !$secretKey) {
         if (!$accessKey && isset($ini->amazon->ses->accessKey)) {
             $accessKey = $ini->amazon->ses->accessKey;
         }
         if (!$secretKey && isset($ini->amazon->ses->secretKey)) {
             $secretKey = $ini->amazon->ses->secretKey;
         }
     }
     if (!$region) {
         $region = isset($ini->amazon->ses->region) ? $ini->amazon->ses->region : self::DEFAULT_REGION;
     }
     $this->setRegion($region);
     parent::__construct($accessKey, $secretKey);
 }
開發者ID:grrr-amsterdam,項目名稱:garp3,代碼行數:25,代碼來源:Ses.php

示例4: __construct

 /**
  * Constructor
  *
  * @param string $accessKey
  * @param string $secretKey
  * @param string $region
  */
 public function __construct($accessKey = null, $secretKey = null, $region = null)
 {
     parent::__construct($accessKey, $secretKey, $region);
 }
開發者ID:fredcido,項目名稱:simuweb,代碼行數:11,代碼來源:Sqs.php

示例5: __construct

 /**
  * Create Amazon client.
  *
  * @param  string $access_key       Override the default Access Key
  * @param  string $secret_key       Override the default Secret Key
  * @param  string $region           Sets the AWS Region
  * @return void
  */
 public function __construct($accessKey = null, $secretKey = null, $region = null)
 {
     if (!$region) {
         $region = self::$_defaultRegion;
     } else {
         // make rue the region is valid
         if (!empty($region) && !in_array(strtolower($region), self::$_validEc2Regions, true)) {
             require_once 'Zend/Service/Amazon/Exception.php';
             throw new Zend_Service_Amazon_Exception('Invalid Amazon Ec2 Region');
         }
     }
     $this->_region = $region;
     parent::__construct($accessKey, $secretKey);
 }
開發者ID:fredcido,項目名稱:cenbrap,代碼行數:22,代碼來源:Abstract.php

示例6: __construct

 /**
  * Constructor
  *
  * @param string $accessKey
  * @param string $secretKey
  * @param string $region
  */
 public function __construct($accessKey = null, $secretKey = null, $region = null)
 {
     parent::__construct($accessKey, $secretKey, $region);
     $this->setEndpoint('http://' . self::S3_ENDPOINT);
 }
開發者ID:hirentricore,項目名稱:devmagento,代碼行數:12,代碼來源:S3.php

示例7: __construct

 /**
  * Create Amazon SimpleDB client.
  *
  * @param  string $access_key       Override the default Access Key
  * @param  string $secret_key       Override the default Secret Key
  * @param  string $region           Sets the AWS Region
  * @return void
  */
 public function __construct($accessKey, $secretKey)
 {
     parent::__construct($accessKey, $secretKey);
     $this->setEndpoint("https://" . $this->_sdbEndpoint);
 }
開發者ID:sepano,項目名稱:open-social-media-monitoring,代碼行數:13,代碼來源:SimpleDb.php

示例8: setKeys

 /**
  * Set the keys to use when accessing SQS.
  *
  * @param  string $access_key       Set the default Access Key
  * @param  string $secret_key       Set the default Secret Key
  * @return void
  */
 public static function setKeys($accessKey, $secretKey)
 {
     self::$_defaultAccessKey = $accessKey;
     self::$_defaultSecretKey = $secretKey;
 }
開發者ID:AholibamaSI,項目名稱:plymouth-webapp,代碼行數:12,代碼來源:Abstract.php

示例9: setRegion

 /**
  * Set which region you are working in.  It will append the
  * end point automaticly
  *
  * @param string $region
  */
 public static function setRegion($region)
 {
     if (in_array(strtolower($region), self::$_validEc2Regions, true)) {
         self::$_defaultRegion = $region;
     } else {
         require_once 'Zend/Service/Amazon/Exception.php';
         throw new Zend_Service_Amazon_Exception('Invalid Amazon Ec2 Region');
     }
 }
開發者ID:c12g,項目名稱:stratos-php,代碼行數:15,代碼來源:Abstract.php


注:本文中的Zend_Service_Amazon_Abstract類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。