videosModeluploadfiles Class Reference

Public Member Functions

getData ()
 getFiles ()
 deleteFiles ($files, $type)
 storeFileInDB ($name, $path, $type, $url)
 refreshDisk ()
 checkThumb ($path)
 checkMov ($path)
 checkFlash ($path)

Data Fields

 $_data

Detailed Description

the model class for the file uploader

Author:
MasterSoft Software Solutions Ltd.

Member Function Documentation

checkFlash ( path  ) 

check if the passed flash file is correct (extension)

Parameters:
string $path the path to check
Returns:
boolean true if the flash file is correct.otherwise false
checkMov ( path  ) 

check if the passed mov file is correct (extension)

Parameters:
string $path the path to check
Returns:
boolean true if the mov file is correct.otherwise false
checkThumb ( path  ) 

check if the passed thumb is correct (correct file size,extension, height and width)

Parameters:
string $path the path to check
Returns:
boolean true if the thumb is correct.otherwise false
deleteFiles ( files,
type 
)

delete files from database

Parameters:
array $files the files to delete
string $type the type(mov,flash,thumb) of the files to delete
Returns:
void
& getData (  ) 

get the data array

Returns:
array
getFiles (  ) 

fill the data array

Returns:
void
refreshDisk (  ) 

refresh the database entries with new entries from the disk

Returns:
void
storeFileInDB ( name,
path,
type,
url 
)

store a file into the database

Parameters:
string $name the name of the file
string $path the disk path of the file
string $type the type(mov,thumb,flash) of the file
string $url the url of the file
Returns:
string a success or a error message

Field Documentation

$_data

The documentation for this class was generated from the following file:

Generated on Wed Oct 14 18:04:49 2009 for MasterSoft Video Player for Joomla 1.5 by  doxygen 1.6.1