| 1 | <?php |
||
| 13 | class UploadFile |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Wrapper for method is_uploaded_file - tells whether the file was uploaded via HTTP POST. |
||
| 17 | * |
||
| 18 | * @param string $filename |
||
| 19 | * |
||
| 20 | * @return bool Returns TRUE on success or FALSE on failure. |
||
| 21 | */ |
||
| 22 | public function is($filename) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Wrapper for method move_uploaded_file - moves an uploaded file to a new location. |
||
| 29 | * |
||
| 30 | * @param string $filename The filename of the uploaded file. |
||
| 31 | * @param string $destination The destination of the moved file. |
||
| 32 | * |
||
| 33 | * @return bool Returns TRUE on success or FALSE on failure. |
||
| 34 | */ |
||
| 35 | public function move($filename, $destination) |
||
| 39 | } |
||
| 40 |