API Documentation

Service/Nirvanix/Namespace/Imfs.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Nirvanix
version
$Id: Imfs.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Service_Nirvanix_Namespace_Imfs

Description

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.

Zend_Service_Nirvanix_Namespace_Imfs

Extends from
Zend_Service_Nirvanix_Namespace_Base
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Nirvanix
Methods
getContents
putContents
unlink

Description

Namespace proxy with additional convenience methods for the IMFS namespace.

Methods

getContents

getContents( string $filePath, integer $expiration = 3600 ) : string

Convenience function to get the contents of a file on the Nirvanix IMFS. Analog to PHP's file_get_contents().

Arguments
$filePath
string
Remote path and filename
$expiration
integer
Number of seconds that Nirvanix make the file available for download.
Output
string
Contents of file
Details
visibility
public
final
false
static
false

putContents

putContents( string $filePath, integer $data, string $mimeType = null ) : Zend_Service_Nirvanix_Response

Convenience function to put the contents of a string into the Nirvanix IMFS. Analog to PHP's file_put_contents().

Arguments
$filePath
string
Remote path and filename
$data
integer
Data to store in the file
$mimeType
string
Mime type of data
Details
visibility
public
final
false
static
false

unlink

unlink( string $filePath ) : Zend_Service_Nirvanix_Response

Convenience function to remove a file from the Nirvanix IMFS.

Analog to PHP's unlink().

Arguments
$filePath
string
Remove path and filename
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.