go-utils
[ class tree: go-utils ] [ index: go-utils ] [ all elements ]

Class: File

Source Location: /classes/File.class.inc.php

Class Overview


This file contains functions for file operations.


Author(s):

Version:

  • $Id: File.class.inc.php 1292 2008-10-30 12:53:37Z mschering $

Copyright:

  • Copyright Intermesh

Variables

Methods



Class Details

[line 25]
This file contains functions for file operations.

Tags:

author:  Merijn Schering <mschering@intermesh.nl>
version:  $Id: File.class.inc.php 1292 2008-10-30 12:53:37Z mschering $
copyright:  Copyright Intermesh
since:  Group-Office 3.0


[ Top ]


Class Variables

$path =

[line 27]


Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 30]

File __construct( $path)

Parameters:

   $path  

[ Top ]

method checkfilename [line 170]

string checkfilename( string $filepath)

Checks if a filename exists and renames it.

Tags:

return:  New filepath
access:  public

Parameters:

string   $filepath   The complete path to the file

[ Top ]

method get_directory_size [line 33]

void get_directory_size( $dir)

Parameters:

   $dir  

[ Top ]

method get_extension [line 148]

string get_extension( [string $filename = null])

Returns the extension of a filename

Tags:

return:  The extension of a filename
access:  public

Parameters:

string   $filename   The complete filename

[ Top ]

method get_filetype_description [line 68]

void get_filetype_description( [ $extension = null])

Parameters:

   $extension  

[ Top ]

method get_filetype_image [line 49]

void get_filetype_image( [ $extension = null])

Parameters:

   $extension  

[ Top ]

method get_mime [line 87]

void get_mime( $path)

Parameters:

   $path  

[ Top ]

method strip_extension [line 126]

string strip_extension( [string $filename = null])

Return a filename without extension

Tags:

return:  A filename without the extension
access:  public

Parameters:

string   $filename   The complete filename

[ Top ]


Documentation generated on Thu, 30 Oct 2008 14:13:27 +0100 by phpDocumentor 1.4.0