package Zend_Service_Rackspace

 Methods

Constructor

__construct(\Zend_Service_Rackspace_Files $service, array $data) 

You must pass the Zend_Service_Rackspace_Files object of the caller and an associative array with the keys "name", "container", "hash", "bytes", "content_type", "last_modified", "file" where: name= name of the object container= name of the container where the object is stored hash= the MD5 of the object's content bytes= size in bytes of the object's content content_type= content type of the object's content last_modified= date of the last modified of the object content= content of the object

Parameters

$service

\Zend_Service_Rackspace_Files

$data

array

Exceptions

\Zend_Service_Rackspace_Files_Exception

Copy the object to another container You can add metadata information to the destination object, change the content_type and the name of the object

copyTo(string $container_dest, string $name_dest, array $metadata = array(), string $content_type = null) : boolean

Parameters

$container_dest

string

$name_dest

string

$metadata

array

$content_type

string

Returns

boolean

Get the CDN URL of the object

getCdnUrl() : string

Returns

string

Get the CDN SSL URL of the object

getCdnUrlSsl() : string

Returns

string

Get the name of the container

getContainer() : string

Returns

string

Get the content of the object

getContent() : string

Returns

string

Get the content type of the object's content

getContentType() : string

Returns

string

Get the MD5 of the object's content

getHash() : string | boolean

Returns

stringboolean

Get the data of the last modified of the object

getLastModified() : string

Returns

string

Get name

getName() : string

Returns

string

Get the size (in bytes) of the object's content

getSize() : integer | boolean

Returns

integerboolean

 Properties

 

Name of the container where the object is stored

$container : string

Default

 

Object content

$content : string

Default

 

Content type of the object's content

$contentType : string

Default

 

MD5 value of the object's content

$hash : string

Default

 

Date of the last modified of the object

$lastModified : string

Default

 

Name of the object

$name : string

Default

 

The service that has created the object

$service : \Zend_Service_Rackspace_Files

Default

 

Size in bytes of the object's content

$size : integer

Default