Class DataObject
Objects are the basic storage entities in Cloud Files. They represent the files and their optional metadata you upload to the system. When you upload objects to Cloud Files, the data is stored as-is (without compression or encryption) and consists of a location (container), the object's name, and any metadata you assign consisting of key/value pairs.
- OpenCloud\Common\Base
-
OpenCloud\ObjectStore\Resource\AbstractResource
-
OpenCloud\ObjectStore\Resource\DataObject
public
|
#
__construct(
Also need to set Container parent and handle pseudo-directories. |
public
|
|
public
mixed
|
#
populateFromResponse( Guzzle\Http\Message\Response $response )
Takes a response and stocks common values from both the body and the headers. |
public
|
|
public
mixed
|
|
public
|
|
public
mixed
|
|
public
string
|
|
public
mixed
|
|
public
boolean
|
|
public
boolean
|
|
public
mixed
|
|
public
Guzzle\Http\EntityBody
|
|
public
mixed
|
|
public
null|string
|
|
public
mixed
|
|
public
integer
|
|
public
mixed
|
|
public
null|string
|
|
protected
mixed
|
|
public
null|string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
Guzzle\Http\Message\Response
|
|
public
|
|
public
Guzzle\Http\Message\Response
|
#
createSymlinkTo( string $destination )
Create a symlink to another named object from this object. Requires this object to be empty. |
public
|
#
createSymlinkFrom( string $source )
Create a symlink to this object from another named object. Requires the other object to either not exist or be empty. |
public
string
|
#
getTemporaryUrl( integer $expires, string $method, boolean $forcePublicUrl = false )
Get a temporary URL for this object. |
public
mixed
|
|
public
boolean|Guzzle\Http\Url
|
|
protected static
|
|
protected
null|string
|
string |
METADATA_LABEL
|
# 'Object' |
GLOBAL_METADATA_PREFIX
|
PATCH_CONTENT_TYPE
|
protected
The
|
$name
file name of the object |
|
protected
Guzzle\Http\EntityBody
|
$content
|
|
protected
boolean
|
$directory
Whether or not this object is a "pseudo-directory" |
# false |
protected
string
|
$contentType
The object's content type |
|
protected
The
|
$contentLength
size of this object. |
|
protected
string
|
$lastModified
Date of last modification. |
|
protected
string
|
$etag
Etag. |
|
protected
string
|
$manifest
Manifest. Can be null so we use false to mean unset. |
# false |
$metadata,
$metadataClass,
$service
|
$aliases
|