Class PublicFiles

Description

This class provides interface for adding and retriving files from public/files folder

Located in /application/models/PublicFiles.class.php (line 8)


	
			
Method Summary
static string addFile (string $source, [string $extension = null])
static boolean deleteFile (string $delete_file)
static boolean fileExists (string $filename)
static string getFilePath (string $filename)
static string getFileUrl (string $filename)
static string getRepositoryPath (null 0)
static string getRepositoryUrl (null 0)
static null setRepositoryPath (string $value)
static null setRepositoryUrl (string $value)
static boolean updateFile (string $source, string $update_file)
Methods
static method addFile (line 31)

Add file to the repository. When file is added this function will return new filename (40 characters + $extension)

static string addFile (string $source, [string $extension = null])
  • string $source: Path of source file
  • string $extension: Use this file extension
static method deleteFile (line 68)

Delete file from repository

static boolean deleteFile (string $delete_file)
  • string $delete_file: Filename of file that need to be deleted
static method fileExists (line 99)

Returns true if file with filename $filename exists in repository

static boolean fileExists (string $filename)
  • string $filename
static method getFilePath (line 79)

Return path of specific file

static string getFilePath (string $filename)
  • string $filename
static method getFileUrl (line 89)

Return URL of specific public file

static string getFileUrl (string $filename)
  • string $filename
static method getRepositoryPath (line 113)

Get repository_path

static string getRepositoryPath (null 0)
  • null 0
static method getRepositoryUrl (line 133)

Get repository_url

static string getRepositoryUrl (null 0)
  • null 0
static method setRepositoryPath (line 123)

Set repository_path value

static null setRepositoryPath (string $value)
  • string $value
static method setRepositoryUrl (line 143)

Set repository_url value

static null setRepositoryUrl (string $value)
  • string $value
static method updateFile (line 49)

Update content of specific repository file (update $update_file with content from $source)

static boolean updateFile (string $source, string $update_file)
  • string $source: Source file
  • string $update_file: File that need to be updated

Documentation generated on Wed, 23 Jan 2008 01:59:23 +0000 by phpDocumentor 1.4.0