Zend Framework
1.12
|
Public Member Functions | |
__construct ($service, $data) | |
Constructor. | |
getName () | |
Get name. | |
getContainer () | |
Get the name of the container. | |
getHash () | |
Get the MD5 of the object's content. | |
getSize () | |
Get the size (in bytes) of the object's content. | |
getContentType () | |
Get the content type of the object's content. | |
getLastModified () | |
Get the data of the last modified of the object. | |
getContent () | |
Get the content of the object. | |
getMetadata ($key=null) | |
Get the metadata of the object If you don't pass the $key it returns the entire array of metadata value. | |
setMetadata ($metadata) | |
Set the metadata value The old metadata values are replaced with the new one. | |
copyTo ($container_dest, $name_dest, $metadata=array(), $content_type=null) | |
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. | |
getCdnUrl () | |
Get the CDN URL of the object. | |
getCdnUrlSsl () | |
Get the CDN SSL URL of the object. | |
Protected Attributes | |
$service | |
$name | |
$hash | |
$size | |
$contentType | |
$lastModified | |
$content | |
$container | |
__construct | ( | $service, | |
$data | |||
) |
Constructor.
You must pass the Zend_Service_Rackspace_Files object of the caller and an associative array with the keys "name", "container", "hash", "bytes", "content_type", "last_modified", "file" where: name= name of the object container= name of the container where the object is stored hash= the MD5 of the object's content bytes= size in bytes of the object's content content_type= content type of the object's content last_modified= date of the last modified of the object content= content of the object
Zend_Service_Rackspace_Files | $service | |
array | $data |
Zend_Service_Rackspace_Files_Exception |
copyTo | ( | $container_dest, | |
$name_dest, | |||
$metadata = array() , |
|||
$content_type = null |
|||
) |
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.
string | $container_dest | |
string | $name_dest | |
array | $metadata | |
string | $content_type |
getCdnUrl | ( | ) |
Get the CDN URL of the object.
getCdnUrlSsl | ( | ) |
Get the CDN SSL URL of the object.
getContainer | ( | ) |
Get the name of the container.
getContent | ( | ) |
Get the content of the object.
getContentType | ( | ) |
Get the content type of the object's content.
getHash | ( | ) |
Get the MD5 of the object's content.
getLastModified | ( | ) |
Get the data of the last modified of the object.
getMetadata | ( | $key = null | ) |
Get the metadata of the object If you don't pass the $key it returns the entire array of metadata value.
string | $key |
getName | ( | ) |
Get name.
getSize | ( | ) |
Get the size (in bytes) of the object's content.
setMetadata | ( | $metadata | ) |
Set the metadata value The old metadata values are replaced with the new one.
array | $metadata |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |