Zend Framework
1.12
|
Public Member Functions | |
__construct ($service, $data) | |
Construct. | |
getName () | |
Get the name of the container. | |
getSize () | |
Get the size in bytes of the container. | |
getObjectCount () | |
Get the total count of objects in the container. | |
isCdnEnabled () | |
Return true if the container is CDN enabled. | |
getCdnTtl () | |
Get the TTL of the CDN. | |
isCdnLogEnabled () | |
Return true if the log retention is enabled for the CDN. | |
getCdnUri () | |
Get the CDN URI. | |
getCdnUriSsl () | |
Get the CDN URI SSL. | |
getMetadata ($key=null) | |
Get the metadata of the container. | |
getInfo () | |
Get the information of the container (total of objects, total size) | |
getObjects () | |
Get all the object of the container. | |
getObject ($name, $headers=array()) | |
Get an object of the container. | |
addObject ($name, $file, $metadata=array()) | |
Add an object in the container. | |
deleteObject ($obj) | |
Delete an object in the container. | |
copyObject ($obj_source, $container_dest, $obj_dest, $metadata=array(), $content_type=null) | |
Copy an object to another container. | |
getMetadataObject ($object) | |
Get the metadata of an object in the container. | |
setMetadataObject ($object, $metadata=array()) | |
Set the metadata of an object in the container. | |
enableCdn ($ttl=Zend_Service_Rackspace_Files::CDN_TTL_MIN) | |
Enable the CDN for the container. | |
disableCdn () | |
Disable the CDN for the container. | |
changeTtlCdn ($ttl) | |
Change the TTL for the CDN container. | |
enableLogCdn () | |
Enable the log retention for the CDN. | |
disableLogCdn () | |
Disable the log retention for the CDN. | |
getCdnInfo () | |
Get the CDN information. | |
Public Attributes | |
const | ERROR_PARAM_FILE_CONSTRUCT = 'The Zend_Service_Rackspace_Files passed in construction is not valid' |
const | ERROR_PARAM_ARRAY_CONSTRUCT = 'The array passed in construction is not valid' |
const | ERROR_PARAM_NO_NAME = 'The container name is empty' |
Protected Attributes | |
$name | |
__construct | ( | $service, | |
$data | |||
) |
Construct.
Zend_Service_Rackspace_Files | $service | |
$data |
Zend_Service_Rackspace_Files_Exception |
addObject | ( | $name, | |
$file, | |||
$metadata = array() |
|||
) |
Add an object in the container.
string | $name | |
string | $file | the content of the object |
array | $metadata |
changeTtlCdn | ( | $ttl | ) |
Change the TTL for the CDN container.
integer | $ttl |
copyObject | ( | $obj_source, | |
$container_dest, | |||
$obj_dest, | |||
$metadata = array() , |
|||
$content_type = null |
|||
) |
Copy an object to another container.
string | $obj_source | |
string | $container_dest | |
string | $obj_dest | |
array | $metadata | |
string | $content_type |
deleteObject | ( | $obj | ) |
Delete an object in the container.
string | $obj |
disableCdn | ( | ) |
Disable the CDN for the container.
disableLogCdn | ( | ) |
Disable the log retention for the CDN.
enableCdn | ( | $ttl = Zend_Service_Rackspace_Files::CDN_TTL_MIN | ) |
Enable the CDN for the container.
integer | $ttl |
enableLogCdn | ( | ) |
Enable the log retention for the CDN.
getCdnInfo | ( | ) |
Get the CDN information.
getCdnTtl | ( | ) |
Get the TTL of the CDN.
getCdnUri | ( | ) |
Get the CDN URI.
getCdnUriSsl | ( | ) |
Get the CDN URI SSL.
getInfo | ( | ) |
Get the information of the container (total of objects, total size)
getMetadata | ( | $key = null | ) |
Get the metadata of the container.
If $key is empty return the array of metadata
string | $key |
getMetadataObject | ( | $object | ) |
Get the metadata of an object in the container.
string | $object |
getName | ( | ) |
Get the name of the container.
getObject | ( | $name, | |
$headers = array() |
|||
) |
Get an object of the container.
string | $name | |
array | $headers |
getObjectCount | ( | ) |
Get the total count of objects in the container.
getObjects | ( | ) |
Get all the object of the container.
getSize | ( | ) |
Get the size in bytes of the container.
isCdnEnabled | ( | ) |
Return true if the container is CDN enabled.
isCdnLogEnabled | ( | ) |
Return true if the log retention is enabled for the CDN.
setMetadataObject | ( | $object, | |
$metadata = array() |
|||
) |
Set the metadata of an object in the container.
string | $object | |
array | $metadata |
|
protected |
const ERROR_PARAM_ARRAY_CONSTRUCT = 'The array passed in construction is not valid' |
const ERROR_PARAM_FILE_CONSTRUCT = 'The Zend_Service_Rackspace_Files passed in construction is not valid' |
const ERROR_PARAM_NO_NAME = 'The container name is empty' |