Beispiel #1
0
 /**
  * Retrieve storage client for this stream type
  * 
  * @param string $path
  * @return Microsoft_WindowsAzure_Storage_Blob
  */
 protected function getStorageClient($path = '')
 {
     if (is_null($this->_storageClient)) {
         $url = explode(':', $path);
         if (!$url) {
             throw new Microsoft_WindowsAzure_Exception('Could not parse path "' . $path . '".');
         }
         $this->_storageClient = Microsoft_WindowsAzure_Storage_Blob::getWrapperClient($url[0]);
         if (!$this->_storageClient) {
             throw new Microsoft_WindowsAzure_Exception('No storage client registered for stream type "' . $url[0] . '://".');
         }
     }
     return $this->_storageClient;
 }