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) : boolean
Copy an object from a container to another
ParametersName | Type | Description |
---|
$container_source | string | |
---|
$obj_source | string | |
---|
$container_dest | string | |
---|
$obj_dest | string | |
---|
$metadata | array | |
---|
$content_type | string | |
---|
Returns deleteContainer(\sting $container) : boolean
Delete a container (only if it's empty)
ParametersName | Type | Description |
---|
$container | \sting | |
---|
Returns deleteObject(string $container, string $object) : boolean
Delete an object in a container
ParametersName | Type | Description |
---|
$container | string | |
---|
$object | string | |
---|
Returns enableCdnContainer(string $container, integer $ttl = self::CDN_TTL_MIN) : array | boolean
Enable the CDN for a container
ParametersName | Type | Description |
---|
$container | string | |
---|
$ttl | integer | |
---|
ReturnsType | Description |
---|
array | boolean | |
getCdnContainers(array $options = array()) : array | boolean
Get all the CDN containers
ParametersName | Type | Description |
---|
$options | array | |
---|
ReturnsType | Description |
---|
array | boolean | |
getInfoAccount() : array | boolean
Get the metadata information of the accounts:
- total count containers
- size in bytes of all the containers
- total objects in all the containers
ReturnsType | Description |
---|
array | boolean | |
getInfoCdnContainer(string $container) : array | boolean
Get the information of a Cdn container
ParametersName | Type | Description |
---|
$container | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
getMetadataContainer(string $container) : array | boolean
Get the metadata of a container
ParametersName | Type | Description |
---|
$container | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
getMetadataObject(string $container, string $object) : array | boolean
Get the metadata of an object
ParametersName | Type | Description |
---|
$container | string | |
---|
$object | string | |
---|
ReturnsType | Description |
---|
array | boolean | |
getObject(string $container, string $object, array $headers = array()) : \Zend_Service_Rackspace_Files_Object | boolean
Get an object in a container
ParametersName | Type | Description |
---|
$container | string | |
---|
$object | string | |
---|
$headers | array | |
---|
Returns getObjects(string $container, array $options = array()) : \Zend_Service_Rackspace_Files_ObjectList | boolean
Get all the objects of a container
ParametersName | Type | Description |
---|
$container | string | |
---|
$options | array | |
---|
Returns setMetadataObject(string $container, string $object, array $metadata) : boolean
Set the metadata of a object in a container
The old metadata values are replaced with the new one
ParametersName | Type | Description |
---|
$container | string | |
---|
$object | string | |
---|
$metadata | array | |
---|
Returns storeObject(string $container, string $object, string $content, array $metadata = array(), string $content_type = null) : boolean
Store a file in a container
ParametersName | 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) : boolean
Update the attribute of a CDN container
ParametersName | Type | Description |
---|
$container | string | |
---|
$ttl | integer | |
---|
$cdn_enabled | boolean | |
---|
$log | boolean | |
---|
Returns