buildBatchCopy() public static méthode

public static buildBatchCopy ( $source_bucket, $key_pairs, $target_bucket )
Exemple #1
0
 public function testBatchCopy()
 {
     $key = 'copyto' . rand();
     $ops = BucketManager::buildBatchCopy($this->bucketName, array($this->key => $key), $this->bucketName);
     list($ret, $error) = $this->bucketManager->batch($ops);
     $this->assertEquals(200, $ret[0]['code']);
     $ops = BucketManager::buildBatchDelete($this->bucketName, array($key));
     list($ret, $error) = $this->bucketManager->batch($ops);
     $this->assertEquals(200, $ret[0]['code']);
 }