OpenCloud/Common/ObjectStore.php

Properties

Description

An abstract class that defines shared code among all Object Storage components

Classes

ObjectStore

Properties

 
 
Yes 
No 

Description

Intermediate (abstract) class to implement shared features of all object-storage classes
This class implements metadata-handling and other features that are common to the object storage components.

Methods

GetMetadata, JsonCollectionElement, JsonCollectionName, JsonName, MetadataHeaders, Name, Prefix, __construct,

GetMetadata(   $response, ) : void

Description

Given an HttpResponse object, converts the appropriate headers to metadata

Arguments

Name Type Description Default
$response n/a

Return value

Type Description
void

JsonCollectionElement( ) : n/a

Return value

Type Description
n/a n/a

JsonCollectionName( ) : n/a

Return value

Type Description
n/a n/a

JsonName( ) : n/a

Return value

Type Description
n/a n/a

MetadataHeaders( ) : \OpenCloud\Common\array;

Description

If object has metadata, returns an associative array of headers
For example, if a DataObject has a metadata item named 'FOO', then this would return array('X-Object-Meta-FOO'=>$value);

Return value

Type Description
\OpenCloud\Common\array;

Name( ) : n/a

Description

Returns the displayable name of the object
Can be overridden by child objects; *must* be overridden by child objects if the object does not have a `name` attribute defined.

Return value

Type Description
n/a n/a

Tags

Name Description
api
throws if attribute 'name' is not defined

Prefix( string   $type = null, ) : n/a

Description

Returns the proper prefix for the specified type of object

Arguments

Name Type Description Default
$type string

The type of object; derived from get_class() if not specified.

null

Return value

Type Description
n/a n/a

__construct( ) : n/a

Description

Initializes the metadata component

Return value

Type Description
n/a n/a

Properties

$metadata,

  public  $metadata =




Constants

  ACCOUNT_META_PREFIX = 'X-Account-'




  CDNCONTAINER_META_PREFIX = 'X-Cdn-'




  CONTAINER_META_PREFIX = 'X-Container-Meta-'




  OBJECT_META_PREFIX = 'X-Object-Meta-'




Documentation was generated by phpDocumentor 2.0.0b6 .

Namespaces

Packages