API Documentation

Zend/Service/Nirvanix/Namespace/Imfs.php

Show: inherited
Table of Contents

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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Service  
Subpackage
Nirvanix  
Version
$Id: Imfs.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Service_Nirvanix_Namespace_Imfs

Package: Zend\Service\Nirvanix

Namespace proxy with additional convenience methods for the IMFS namespace.

Parent(s)
\Zend_Service_Nirvanix_Namespace_Base
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublicgetContents( 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().

Parameters
Name Type Description
$filePath string

Remote path and filename

$expiration integer

Number of seconds that Nirvanix make the file available for download.

Returns
Type Description
string Contents of file
methodpublicputContents( 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().

Parameters
Name Type Description
$filePath string

Remote path and filename

$data integer

Data to store in the file

$mimeType string

Mime type of data

Returns
Type Description
\Zend_Service_Nirvanix_Response
methodpublicunlink( string $filePath ) : \Zend_Service_Nirvanix_Response

Convenience function to remove a file from the Nirvanix IMFS.

Analog to PHP's unlink().

Parameters
Name Type Description
$filePath string

Remove path and filename

Returns
Type Description
\Zend_Service_Nirvanix_Response
Documentation was generated by DocBlox 0.15.1.