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\DataObject
Indirect known subclasses
OpenCloud\ObjectStore\Resource\CDNContainer,
OpenCloud\ObjectStore\Resource\Container
Namespace: OpenCloud\ObjectStore\Resource
Located at OpenCloud/ObjectStore/Resource/AbstractResource.php
Methods summary
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
|
|
public static
array
|
|
public
|
#
setMetadata( $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. |
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getInstance(),
getLogger(),
hasLogger(),
makeResourceIteratorOptions(),
populate(),
setLogger(),
stripNamespace(),
toCamel(),
toUnderscores()
Magic methods summary
Constants summary
string |
GLOBAL_METADATA_PREFIX
|
#
'X'
|