phpDocumentor Testlink
[ class tree: Testlink ] [ index: Testlink ] [ all elements ]

Procedural File: files.inc.php

Source Location: /files.inc.php

Page Details

TestLink Open Source Project - http://testlink.sourceforge.net/ This script is distributed under the GNU General Public License 2 or later.

Filename $RCSfile: _files.inc.php.html,v $

Author:  Francisco Mancardi
Version:  $Revision: 1.1.2.1 $
Functions
getFileContents  [line 54]

string getFileContents( string $fName  )

get the contents of a file

Parameters:
string   $fName:  the name of the file to read

API Tags:
Return:  the file contents


[ Top ]
getFileExtension  [line 36]

string getFileExtension( string $fName, string $default  )

gets the extension from a file name

Parameters:
string   $fName:  the filename
string   $default:  a default extension

API Tags:
Return:  returns the extension


[ Top ]
getUniqueFileName  [line 21]

string getUniqueFileName( string $fExt  )

Gets an unique file name to be used for the attachment

Parameters:
string   $fExt:  the file extension

API Tags:
Return:  the filename


[ Top ]
gzip_compress_file  [line 74]

bool gzip_compress_file( string $srcName, string $dstName  )

Compresses a file (creates a gzipped file)

Parameters:
string   $srcName:  the source file
string   $dstName:  the destination file name (the compressed one)

API Tags:
Return:  returns true on success, false else


[ Top ]
gzip_readFileContent  [line 128]

void gzip_readFileContent( $fName, $fileSize  )
Parameters:
   $fName: 
   $fileSize: 


[ Top ]
gzip_uncompress_content  [line 113]

string gzip_uncompress_content( string $content, int $fileSize  )

uncompresses arbitrary gzipped content

Parameters:
int   $fileSize:  the original size of the uncompressed content
string   $content:  content the compressed content

API Tags:
Return:  returns the uncompressed contents on success or null on error


[ Top ]
gzip_writeToFile  [line 93]

bool gzip_writeToFile( string $dstName, string $data  )

Writes contents to a gzip-file

Parameters:
string   $dstName:  the filename
string   $data:  the contents to be written

API Tags:
Return:  returns true on success, false else


[ Top ]


Documentation generated on Fri, 03 Apr 2009 14:13:46 +0200 by phpDocumentor 1.4.1