Class AbstractResource
Abstract base class which implements shared functionality of ObjectStore resources. Provides support, for example, for metadata-handling and other features that are common to the ObjectStore components.
- OpenCloud\Common\Base
- OpenCloud\ObjectStore\Resource\AbstractResource
Direct known subclasses
OpenCloud\ObjectStore\Resource\AbstractContainer, OpenCloud\ObjectStore\Resource\Account, OpenCloud\ObjectStore\Resource\DataObjectIndirect known subclasses
OpenCloud\ObjectStore\Resource\CDNContainer, OpenCloud\ObjectStore\Resource\Container
Abstract
Namespace: OpenCloud\ObjectStore\Resource
Located at OpenCloud/ObjectStore/Resource/AbstractResource.php
Namespace: OpenCloud\ObjectStore\Resource
Located at OpenCloud/ObjectStore/Resource/AbstractResource.php
public
|
|
public
|
|
public
|
|
public
|
|
public static
static
|
#
fromResponse( Guzzle\Http\Message\Response $response,
Factory method that allows for easy instantiation from a Response object. |
public static
array
|
|
protected static
|
|
protected static
mixed
|
|
public static
array
|
|
public
mixed
|
#
setMetadata( mixed $data, boolean $constructFromResponse = false )
Set the metadata (local-only) for this object. |
public
|
|
public
mixed
|
#
saveMetadata( array $metadata, boolean $stockPrefix = true )
Push local metadata to the API, thereby executing a permanent save. |
public
|
#
retrieveMetadata( )
Retrieve metadata from the API. This method will then set and return this value. |
public
mixed
|
|
public
array
|
#
appendToMetadata( array $values )
Append a particular array of values to the existing metadata. Analogous to a merge. |
string |
GLOBAL_METADATA_PREFIX
|
'X' |
protected
|
$metadata |
|
|
protected
string
|
$metadataClass | 'OpenCloud\\Common\\Metadata' |
#
The FQCN of the metadata object used for the container. |
protected
|
$service |
|
#
The service object. |
$aliases
|