Exemple #1
0
 /**
  * Store a key/value array of metadata at the given path.
  * WARNING: This operation overwrites any metadata that is located at
  * $destinationPath.
  *
  * @param  string $destinationPath
  * @param  array  $metadata        associative array specifying the key/value pairs for the metadata.
  * @param  array  $options
  * @return void
  */
 public function storeMetadata($destinationPath, $metadata, $options = null)
 {
     $this->rackspace->setMetadataObject($this->container, $destinationPath, $metadata);
     if (!$this->rackspace->isSuccessful()) {
         throw new Exception\RuntimeException('Error on store metadata: ' . $this->rackspace->getErrorMsg());
     }
 }
Exemple #2
0
 public function testSetMetadataObject()
 {
     $result= $this->rackspace->setMetadataObject(TESTS_ZEND_SERVICE_RACKSPACE_CONTAINER_NAME,
                                                  TESTS_ZEND_SERVICE_RACKSPACE_OBJECT_NAME,
                                                  $this->metadata2);
     $this->assertTrue($result);
 }
Exemple #3
0
 /**
  * Set the metadata value
  * The old metadata values are replaced with the new one
  * 
  * @param array $metadata
  * @return boolean
  */
 public function setMetadata($metadata)
 {
     return $this->service->setMetadataObject($this->container, $this->name, $metadata);
 }
Exemple #4
0
 /**
  * Set the metadata of an object in the container
  *
  * @param string $object
  * @param array $metadata
  * @return boolean
  */
 public function setMetadataObject($object, $metadata = array())
 {
     return $this->service->setMetadataObject($this->getName(), $object, $metadata);
 }