Service/Rackspace/Files.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
- Subpackage
- Rackspace
\Zend_Service_Rackspace_Files
Package: Zend_Service- Parent(s)
- \Zend_Service_Rackspace_Abstract
Constants
Methods



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


deleteContainer(\sting $container) : booleanDelete a container (only if it's empty)
Parameters| Name | Type | Description |
|---|
| $container | \sting | |
|---|
Returns 


deleteObject(string $container, string $object) : booleanDelete an object in a container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $object | string | |
|---|
Returns 


enableCdnContainer(string $container, integer $ttl = self::CDN_TTL_MIN) : array | booleanEnable the CDN for a container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $ttl | integer | |
|---|
Returns| Type | Description |
|---|
| array | boolean | |



getCdnContainers(array $options = array()) : array | booleanGet all the CDN containers
Parameters| Name | Type | Description |
|---|
| $options | array | |
|---|
Returns| Type | Description |
|---|
| array | boolean | |



getInfoAccount() : array | booleanGet the metadata information of the accounts:
- total count containers
- size in bytes of all the containers
- total objects in all the containers
Returns| Type | Description |
|---|
| array | boolean | |



getInfoCdnContainer(string $container) : array | booleanGet the information of a Cdn container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
Returns| Type | Description |
|---|
| array | boolean | |



getMetadataContainer(string $container) : array | booleanGet the metadata of a container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
Returns| Type | Description |
|---|
| array | boolean | |



getMetadataObject(string $container, string $object) : array | booleanGet the metadata of an object
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $object | string | |
|---|
Returns| Type | Description |
|---|
| array | boolean | |



getObject(string $container, string $object, array $headers = array()) : \Zend_Service_Rackspace_Files_Object | booleanGet an object in a container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $object | string | |
|---|
| $headers | array | |
|---|
Returns 


getObjects(string $container, array $options = array()) : \Zend_Service_Rackspace_Files_ObjectList | booleanGet all the objects of a container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $options | array | |
|---|
Returns 


setMetadataObject(string $container, string $object, array $metadata) : booleanSet the metadata of a object in a container
The old metadata values are replaced with the new one
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $object | string | |
|---|
| $metadata | array | |
|---|
Returns 


storeObject(string $container, string $object, string $content, array $metadata = array(), string $content_type = null) : booleanStore a file in a container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $object | string | |
|---|
| $content | string | |
|---|
| $metadata | array | |
|---|
| $content_type | string | |
|---|
Returns 


updateCdnContainer(string $container, integer $ttl = null, boolean $cdn_enabled = null, boolean $log = null) : booleanUpdate the attribute of a CDN container
Parameters| Name | Type | Description |
|---|
| $container | string | |
|---|
| $ttl | integer | |
|---|
| $cdn_enabled | boolean | |
|---|
| $log | boolean | |
|---|
Returns