Service/Rackspace/Files/Object.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_Object
Package: Zend_Service_Rackspace
Properties
Methods
copyTo(string $container_dest, string $name_dest, array $metadata = array(), string $content_type = null) : boolean
Copy the object to another container
You can add metadata information to the destination object, change the
content_type and the name of the object
ParametersName | Type | Description |
---|
$container_dest | string | |
---|
$name_dest | string | |
---|
$metadata | array | |
---|
$content_type | string | |
---|
Returns getHash() : string | boolean
Get the MD5 of the object's content
ReturnsType | Description |
---|
string | boolean | |
getMetadata(string $key = null) : string | array | boolean
Get the metadata of the object
If you don't pass the $key it returns the entire array of metadata value
ParametersName | Type | Description |
---|
$key | string | |
---|
ReturnsType | Description |
---|
string | array | boolean | |
getSize() : integer | boolean
Get the size (in bytes) of the object's content
ReturnsType | Description |
---|
integer | boolean | |
setMetadata(array $metadata) : boolean
Set the metadata value
The old metadata values are replaced with the new one
ParametersName | Type | Description |
---|
$metadata | array | |
---|
Returns