Service/Rackspace/Files/Container.php
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
Properties
Methods



addObject(string $name, string $file, array $metadata = array()) : boolAdd an object in the container
Parameters| Name | Type | Description |
|---|
| $name | string | |
|---|
| $file | string | the content of the object |
|---|
| $metadata | array | |
|---|
Returns 


changeTtlCdn(integer $ttl) : boolChange the TTL for the CDN container
Parameters| Name | Type | Description |
|---|
| $ttl | integer | |
|---|
Returns 


copyObject(string $obj_source, string $container_dest, string $obj_dest, array $metadata = array(), string $content_type = null) : boolCopy an object to another container
Parameters| Name | Type | Description |
|---|
| $obj_source | string | |
|---|
| $container_dest | string | |
|---|
| $obj_dest | string | |
|---|
| $metadata | array | |
|---|
| $content_type | string | |
|---|
Returns 


deleteObject(string $obj) : boolDelete an object in the container
Parameters| Name | Type | Description |
|---|
| $obj | string | |
|---|
Returns 


enableCdn(integer $ttl = \Zend_Service_Rackspace_Files::CDN_TTL_MIN) : array | boolEnable the CDN for the container
Parameters| Name | Type | Description |
|---|
| $ttl | integer | |
|---|
Returns| Type | Description |
|---|
| array | bool | |



getInfo() : array | boolGet the information of the container (total of objects, total size)
Returns| Type | Description |
|---|
| array | bool | |



getMetadata(string $key = null) : array | string | boolGet 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 | bool | |



getMetadataObject(string $object) : arrayGet the metadata of an object in the container
Parameters| Name | Type | Description |
|---|
| $object | string | |
|---|
Returns 


getObject(string $name, array $headers = array()) : \Zend_Service_Rackspace_Files_Object | boolGet an object of the container
Parameters| Name | Type | Description |
|---|
| $name | string | |
|---|
| $headers | array | |
|---|
Returns 


getObjectCount() : integer | boolGet the total count of objects in the container
Returns| Type | Description |
|---|
| integer | bool | |



getSize() : integer | boolGet the size in bytes of the container
Returns| Type | Description |
|---|
| integer | bool | |



setMetadataObject(string $object, array $metadata = array()) : boolSet the metadata of an object in the container
Parameters| Name | Type | Description |
|---|
| $object | string | |
|---|
| $metadata | array | |
|---|
Returns