Example #1
0
 /**
  * List collections.
  *
  * @param  array  $options
  * @return array
  */
 public function listCollections($options = null)
 {
     try {
         $tables = $this->_storageClient->listTables();
         $restables = array();
         foreach ($tables as $table) {
             $restables[] = $table->name;
         }
         return $restables;
     } catch (WindowsAzureException\ExceptionInterface $e) {
         throw new Exception\RuntimeException('Error on collection list: ' . $e->getMessage(), $e->getCode(), $e);
     }
     return $tables;
 }