Files Class Reference

Files and images class. More...

List of all members.

Static Public Member Functions

static getFilePathFromId ($id)
 Get file path given file id.
static delete ($id)
 Delete a file.

Public Attributes

const ICON_SUFFIX = "_icon"
const THUMB_SUFFIX = "_thumb"
const SMALL_SUFFIX = "_small"
const MIDDLE_SUFFIX = "_mid"


Detailed Description

Files and images class.

Definition at line 32 of file files.php.


Member Function Documentation

static Files::getFilePathFromId ( id  )  [static]

Get file path given file id.

Parameters:
$id (int) file id
Returns:
(string) file path

Definition at line 45 of file files.php.

References $cfg.

Referenced by delete().

static Files::delete ( id  )  [static]

Delete a file.

Remove all corresponding files from the file system.

Parameters:
$id (int) file id

Definition at line 72 of file files.php.

References getFilePathFromId(), ICON_SUFFIX, MIDDLE_SUFFIX, SMALL_SUFFIX, and THUMB_SUFFIX.

Referenced by Content::delete().


Member Data Documentation

const Files::ICON_SUFFIX = "_icon"

Definition at line 34 of file files.php.

Referenced by delete().

const Files::THUMB_SUFFIX = "_thumb"

Definition at line 35 of file files.php.

Referenced by delete().

const Files::SMALL_SUFFIX = "_small"

Definition at line 36 of file files.php.

Referenced by delete().

const Files::MIDDLE_SUFFIX = "_mid"

Definition at line 37 of file files.php.

Referenced by delete().


The documentation for this class was generated from the following file:
Generated on Fri Feb 22 11:19:48 2008 for CMSkey by  doxygen 1.5.3