コード例 #1
0
ファイル: Blob.php プロジェクト: rongandat/sallumeh
 /**
  * Creates a new Microsoft_WindowsAzure_Storage_Blob instance
  *
  * @param string $host Storage host name
  * @param string $accountName Account name for Windows Azure
  * @param string $accountKey Account key for Windows Azure
  * @param boolean $usePathStyleUri Use path-style URI's
  * @param Microsoft_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy Retry policy to use when making requests
  */
 public function __construct($host = Microsoft_WindowsAzure_Storage::URL_DEV_BLOB, $accountName = Microsoft_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT, $accountKey = Microsoft_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY, $usePathStyleUri = false, Microsoft_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null)
 {
     parent::__construct($host, $accountName, $accountKey, $usePathStyleUri, $retryPolicy);
     // API version
     $this->_apiVersion = '2009-09-19';
     // SharedAccessSignature credentials
     $this->_sharedAccessSignatureCredentials = new Microsoft_WindowsAzure_Credentials_SharedAccessSignature($accountName, $accountKey, $usePathStyleUri);
 }
コード例 #2
0
ファイル: Queue.php プロジェクト: skoop/MediTerra
 /**
  * Creates a new Microsoft_WindowsAzure_Storage_Queue instance
  *
  * @param string $host Storage host name
  * @param string $accountName Account name for Windows Azure
  * @param string $accountKey Account key for Windows Azure
  * @param boolean $usePathStyleUri Use path-style URI's
  * @param Microsoft_WindowsAzure_RetryPolicy $retryPolicy Retry policy to use when making requests
  */
 public function __construct($host = Microsoft_WindowsAzure_Storage::URL_DEV_QUEUE, $accountName = Microsoft_WindowsAzure_SharedKeyCredentials::DEVSTORE_ACCOUNT, $accountKey = Microsoft_WindowsAzure_SharedKeyCredentials::DEVSTORE_KEY, $usePathStyleUri = false, Microsoft_WindowsAzure_RetryPolicy $retryPolicy = null)
 {
     parent::__construct($host, $accountName, $accountKey, $usePathStyleUri, $retryPolicy);
     // API version
     $this->_apiVersion = '2009-04-14';
 }