Service/Rackspace/Files/Container.php

Show: PublicProtectedPrivateinherited
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 license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service_Rackspace  
Subpackage
Files  

\Zend_Service_Rackspace_Files_Container

Package: Zend_Service_Rackspace

Constants

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

Properties

>VPropertyprotectedstring $name
Details
Type
string

Methods

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

Construct

Parameters
NameTypeDescription
$service\Zend_Service_Rackspace_Files
$data
Throws
ExceptionDescription
\Zend_Service_Rackspace_Files_Exception
methodpublicaddObject(string $name, string $file, array $metadata = array()) : bool

Add an object in the container

Parameters
NameTypeDescription
$namestring
$filestring

the content of the object

$metadataarray
Returns
TypeDescription
bool
methodpublicchangeTtlCdn(integer $ttl) : bool

Change the TTL for the CDN container

Parameters
NameTypeDescription
$ttlinteger
Returns
TypeDescription
bool
methodpubliccopyObject(string $obj_source, string $container_dest, string $obj_dest, array $metadata = array(), string $content_type = null) : bool

Copy an object to another container

Parameters
NameTypeDescription
$obj_sourcestring
$container_deststring
$obj_deststring
$metadataarray
$content_typestring
Returns
TypeDescription
bool
methodpublicdeleteObject(string $obj) : bool

Delete an object in the container

Parameters
NameTypeDescription
$objstring
Returns
TypeDescription
bool
methodpublicdisableCdn() : bool

Disable the CDN for the container

Returns
TypeDescription
bool
methodpublicdisableLogCdn() : bool

Disable the log retention for the CDN

Returns
TypeDescription
bool
methodpublicenableCdn(integer $ttl = \Zend_Service_Rackspace_Files::CDN_TTL_MIN) : array | bool

Enable the CDN for the container

Parameters
NameTypeDescription
$ttlinteger
Returns
TypeDescription
array | bool
methodpublicenableLogCdn() : bool

Enable the log retention for the CDN

Returns
TypeDescription
bool
methodpublicgetCdnInfo() : array | bool

Get the CDN information

Returns
TypeDescription
array | bool
methodpublicgetCdnTtl() : integer | bool

Get the TTL of the CDN

Returns
TypeDescription
integer | bool
methodpublicgetCdnUri() : string | bool

Get the CDN URI

Returns
TypeDescription
string | bool
methodpublicgetCdnUriSsl() : string | bool

Get the CDN URI SSL

Returns
TypeDescription
string | bool
methodpublicgetInfo() : array | bool

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

Returns
TypeDescription
array | bool
methodpublicgetMetadata(string $key = null) : array | string | bool

Get the metadata of the container

If $key is empty return the array of metadata
Parameters
NameTypeDescription
$keystring
Returns
TypeDescription
array | string | bool
methodpublicgetMetadataObject(string $object) : array

Get the metadata of an object in the container

Parameters
NameTypeDescription
$objectstring
Returns
TypeDescription
array
methodpublicgetName() : string

Get the name of the container

Returns
TypeDescription
string
methodpublicgetObject(string $name, array $headers = array()) : \Zend_Service_Rackspace_Files_Object | bool

Get an object of the container

Parameters
NameTypeDescription
$namestring
$headersarray
Returns
TypeDescription
\Zend_Service_Rackspace_Files_Object | bool
methodpublicgetObjectCount() : integer | bool

Get the total count of objects in the container

Returns
TypeDescription
integer | bool
methodpublicgetObjects() : \Zend_Service_Rackspace_Files_ObjectList

Get all the object of the container

methodpublicgetSize() : integer | bool

Get the size in bytes of the container

Returns
TypeDescription
integer | bool
methodpublicisCdnEnabled() : bool

Return true if the container is CDN enabled

Returns
TypeDescription
bool
methodpublicisCdnLogEnabled() : bool

Return true if the log retention is enabled for the CDN

Returns
TypeDescription
bool
methodpublicsetMetadataObject(string $object, array $metadata = array()) : bool

Set the metadata of an object in the container

Parameters
NameTypeDescription
$objectstring
$metadataarray
Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .