Service/Rackspace/Files/Container.php
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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_Rackspace
- Subpackage
- Files
\Zend_Service_Rackspace_Files_Container
Constants
Properties
Methods

__construct(\Zend_Service_Rackspace_Files $service, $data) : voidConstruct
| Name | Type | Description |
|---|---|---|
| $service | \Zend_Service_Rackspace_Files | |
| $data |

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

changeTtlCdn(integer $ttl) : booleanChange the TTL for the CDN container
| Name | Type | Description |
|---|---|---|
| $ttl | integer |
| Type | Description |
|---|---|
| boolean |

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

deleteObject(string $obj) : booleanDelete an object in the container
| Name | Type | Description |
|---|---|---|
| $obj | string |
| Type | Description |
|---|---|
| boolean |

enableCdn(integer $ttl = \Zend_Service_Rackspace_Files::CDN_TTL_MIN) : array | booleanEnable the CDN for the container
| Name | Type | Description |
|---|---|---|
| $ttl | integer |
| Type | Description |
|---|---|
| array | boolean |

getInfo() : array | booleanGet the information of the container (total of objects, total size)
| Type | Description |
|---|---|
| array | boolean |

getMetadata(string $key = null) : array | string | booleanGet the metadata of the container
If $key is empty return the array of metadata
| Name | Type | Description |
|---|---|---|
| $key | string |
| Type | Description |
|---|---|
| array | string | boolean |

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

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

getObjectCount() : integer | booleanGet the total count of objects in the container
| Type | Description |
|---|---|
| integer | boolean |

getObjects() : \Zend_Service_Rackspace_Files_ObjectListGet all the object of the container
| Type | Description |
|---|---|
| \Zend_Service_Rackspace_Files_ObjectList |

getSize() : integer | booleanGet the size in bytes of the container
| Type | Description |
|---|---|
| integer | boolean |

isCdnLogEnabled() : booleanReturn true if the log retention is enabled for the CDN
| Type | Description |
|---|---|
| boolean |