OpenCloud/Common/Metadata.php

Properties

Description

A metadata object, used by other components in Compute and Object Storage

Classes

Metadata

Properties

 
 
 
No 
No 

Description

The Metadata class represents either Server or Image metadata
It 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,

Keylist( ) : array

Description

Returns the list of keys defined

Return value

Type Description
array

SetArray( array   $values, string   $prefix = null, ) : void

Description

Sets metadata values from an array, with optional prefix
If $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

__set( string   $key, string   $value, ) : void

Description

This setter overrides the base one, since the metadata key can be anything

Arguments

Name Type Description Default
$key string
$value string

Return value

Type Description
void

Properties

$_keylist,

  private  $_keylist = array()




Documentation was generated by phpDocumentor 2.0.0b6 .

Namespaces

Packages