videosModeluploadfiles Class Reference
Detailed Description
the model class for the file uploader
- Author:
- MasterSoft Software Solutions Ltd.
Member Function Documentation
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
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
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
get the data array
- Returns:
- array
fill the data array
- Returns:
- void
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
The documentation for this class was generated from the following file: