OpenCloud/Common/Metadata.php
Properties
Description
A metadata object, used by other components in Compute and Object StorageClasses
Metadata
Description
The Metadata class represents either Server or Image metadataIt contains common code for error handling as well as service functions that are useful. Because it is an abstract class, it cannot be called directly, and it has no publicly-visible properties.
Methods
Keylist, SetArray, __set,SetArray( array $values, string $prefix = null, ) : void
Description
Sets metadata values from an array, with optional prefixIf $prefix is provided, then only array keys that match the prefix are set as metadata values, and $prefix is stripped from the key name.
Arguments
Name | Type | Description | Default |
---|---|---|---|
$values | array | an array of key/value pairs to set |
|
$prefix | string | if provided, a prefix that is used to identify metadata values. For example, you can set values from headers for a Container by using $prefix='X-Container-Meta-'. |
null |
Return value
Type | Description |
---|---|
void |