package Zend_Service_Rackspace

 Methods

Construct

__construct(\Zend_Service_Rackspace_Files $service, $data) 

Parameters

$service

\Zend_Service_Rackspace_Files

$data

Exceptions

\Zend_Service_Rackspace_Files_Exception

Add an object in the container

addObject(string $name, string $file, array $metadata = array()) : boolean

Parameters

$name

string

$file

string

the content of the object

$metadata

array

Returns

boolean

Change the TTL for the CDN container

changeTtlCdn(integer $ttl) : boolean

Parameters

$ttl

integer

Returns

boolean

Copy an object to another container

copyObject(string $obj_source, string $container_dest, string $obj_dest, array $metadata = array(), string $content_type = null) : boolean

Parameters

$obj_source

string

$container_dest

string

$obj_dest

string

$metadata

array

$content_type

string

Returns

boolean

Delete an object in the container

deleteObject(string $obj) : boolean

Parameters

$obj

string

Returns

boolean

Disable the CDN for the container

disableCdn() : boolean

Returns

boolean

Disable the log retention for the CDN

disableLogCdn() : boolean

Returns

boolean

Enable the CDN for the container

enableCdn(integer $ttl = \Zend_Service_Rackspace_Files::CDN_TTL_MIN) : array | boolean

Parameters

$ttl

integer

Returns

arrayboolean

Enable the log retention for the CDN

enableLogCdn() : boolean

Returns

boolean

Get the CDN information

getCdnInfo() : array | boolean

Returns

arrayboolean

Get the TTL of the CDN

getCdnTtl() : integer | boolean

Returns

integerboolean

Get the CDN URI

getCdnUri() : string | boolean

Returns

stringboolean

Get the CDN URI SSL

getCdnUriSsl() : string | boolean

Returns

stringboolean

Get the information of the container (total of objects, total size)

getInfo() : array | boolean

Returns

arrayboolean

Get the metadata of an object in the container

getMetadataObject(string $object) : array

Parameters

$object

string

Returns

array

Get the name of the container

getName() : string

Returns

string

Get an object of the container

getObject(string $name, array $headers = array()) : \Zend_Service_Rackspace_Files_Object | boolean

Parameters

$name

string

$headers

array

Returns

\Zend_Service_Rackspace_Files_Objectboolean

Get the total count of objects in the container

getObjectCount() : integer | boolean

Returns

integerboolean

Get all the object of the container

getObjects() : \Zend_Service_Rackspace_Files_ObjectList

Returns

\Zend_Service_Rackspace_Files_ObjectList

Get the size in bytes of the container

getSize() : integer | boolean

Returns

integerboolean

Return true if the container is CDN enabled

isCdnEnabled() : boolean

Returns

boolean

Return true if the log retention is enabled for the CDN

isCdnLogEnabled() : boolean

Returns

boolean

Set the metadata of an object in the container

setMetadataObject(string $object, array $metadata = array()) : boolean

Parameters

$object

string

$metadata

array

Returns

boolean

 Properties

 

$name

$name : string

Default

 Constants

 

ERROR_PARAM_ARRAY_CONSTRUCT

ERROR_PARAM_ARRAY_CONSTRUCT = 'The array passed in construction is not valid' 
 

ERROR_PARAM_FILE_CONSTRUCT

ERROR_PARAM_FILE_CONSTRUCT = 'The Zend_Service_Rackspace_Files passed in construction is not valid' 
 

ERROR_PARAM_NO_NAME

ERROR_PARAM_NO_NAME = 'The container name is empty'