Service/Rackspace/Files/Container.php

Show: inherited
Table of Contents

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_Rackspace  
Subpackage
Files  

\Zend_Service_Rackspace_Files_Container

Package: Default

Constants

Constant  ERROR_PARAM_FILE_CONSTRUCT = 'The Zend_Service_Rackspace_Files passed in construction is not valid'
Constant  ERROR_PARAM_ARRAY_CONSTRUCT = 'The array passed in construction is not valid'
Constant  ERROR_PARAM_NO_NAME = 'The container name is empty'

Properties

Propertyprotectedstring $name =

Details
Type
string

Methods

methodpublic__construct(\Zend_Service_Rackspace_Files $service,  $data) : void

Construct

Parameters
Name Type Description
$service \Zend_Service_Rackspace_Files
$data
methodpublicaddObject(string $name, string $file, array $metadata = array()) : \boolen

Add an object in the container

Parameters
Name Type Description
$name string
$file string

the content of the object

$metadata array
Returns
Type Description
\boolen
methodpublicchangeTtlCdn(integer $ttl) : boolean

Change the TTL for the CDN container

Parameters
Name Type Description
$ttl integer
Returns
Type Description
boolean
methodpubliccopyObject(string $obj_source, string $container_dest, string $obj_dest, array $metadata = array(), string $content_type = null) : boolean

Copy an object to another container

Parameters
Name Type Description
$obj_source string
$container_dest string
$obj_dest string
$metadata array
$content_type string
Returns
Type Description
boolean
methodpublicdeleteObject(string $obj) : boolean

Delete an object in the container

Parameters
Name Type Description
$obj string
Returns
Type Description
boolean
methodpublicdisableCdn() : boolean

Disable the CDN for the container

Returns
Type Description
boolean
methodpublicdisableLogCdn() : boolean

Disable the log retention for the CDN

Returns
Type Description
boolean
methodpublicenableCdn(integer $ttl = \Zend_Service_Rackspace_Files::CDN_TTL_MIN) : array | boolean

Enable the CDN for the container

Parameters
Name Type Description
$ttl integer
Returns
Type Description
array | boolean
methodpublicenableLogCdn() : boolean

Enable the log retention for the CDN

Returns
Type Description
boolean
methodpublicgetCdnInfo() : array | boolean

Get the CDN information

Returns
Type Description
array | boolean
methodpublicgetCdnTtl() : integer | boolean

Get the TTL of the CDN

Returns
Type Description
integer | boolean
methodpublicgetCdnUri() : string | boolean

Get the CDN URI

Returns
Type Description
string | boolean
methodpublicgetCdnUriSsl() : string | boolean

Get the CDN URI SSL

Returns
Type Description
string | boolean
methodpublicgetInfo() : array | boolean

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

Returns
Type Description
array | boolean
methodpublicgetMetadata(string $key = null) : array | string | boolean

Get the metadata of the container

If $key is empty return the array of metadata

Parameters
Name Type Description
$key string
Returns
Type Description
array | string | boolean
methodpublicgetMetadataObject(string $object) : array

Get the metadata of an object in the container

Parameters
Name Type Description
$object string
Returns
Type Description
array
methodpublicgetName() : string

Get the name of the container

Returns
Type Description
string
methodpublicgetObject(string $name, array $headers = array()) : \Zend_Service_Rackspace_Files_Object | boolean

Get an object of the container

Parameters
Name Type Description
$name string
$headers array
Returns
Type Description
\Zend_Service_Rackspace_Files_Object | boolean
methodpublicgetObjectCount() : integer | boolean

Get the total count of objects in the container

Returns
Type Description
integer | boolean
methodpublicgetObjects() : \Zend_Service_Rackspace_Files_ObjectList

Get all the object of the container

Returns
Type Description
\Zend_Service_Rackspace_Files_ObjectList
methodpublicgetSize() : integer | boolean

Get the size in bytes of the container

Returns
Type Description
integer | boolean
methodpublicisCdnEnabled() : boolean

Return true if the container is CDN enabled

Returns
Type Description
boolean
methodpublicisCdnLogEnabled() : boolean

Return true if the log retention is enabled for the CDN

Returns
Type Description
boolean
methodpublicsetMetadataObject(string $object, array $metadata = array()) : boolean

Set the metadata of an object in the container

Parameters
Name Type Description
$object string
$metadata array
Returns
Type Description
boolean
Documentation was generated by phpDocumentor 2.0.0a8.