Detailed Description
files.php
Der Controller stellt angemeldeten Benutzer/innen einen Dateimanager fuer deren persönlichen Dateibereich im Stud.IP zur Verfügung. In diesem Controller werden sämtliche Dateioperationen gekapselt.
- Author
- Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m
-
Stefan Osterloh s.ost.nosp@m.erlo.nosp@m.h@uni.nosp@m.-old.nosp@m.enbur.nosp@m.g.de GPL2 or any later version
- Copyright
- Stud.IP Core-Group
- Since
- 3.1
- Todo:
Remove user dir creation from this controller, it is storage type specific
Extends file extension black list to mime type black list?
Inline display of media
AJAX file upload
Admin/root handling needs to be improved
Test another storage type (DB? FTP?)
Drag and drop move operation
?? Trash functionality (store deleted files in trash for X days)
Member Function Documentation
| before_filter |
( |
& |
$action, |
|
|
& |
$args |
|
) |
| |
Before filter, basically initializes the controller by actvating the according navigation entry and other settings.
- Parameters
-
| String | $action | Action to execute |
| Array | $args | Arguments passed for the action (might be empty) |
Reimplemented from DocumentController.
| bulk_action |
( |
|
$folder_id | ) |
|
General handler for bulk actions. Support the following actions:
- Download
- Move
- Copy
- Delete
- Parameters
-
| String | $folder_id | Directory entry id of the origin folder |
Checks whether it is possible to copy the files (given by their ids) to another folder by determining whether the remaining disk space is sufficient for the files.
- Parameters
-
| Array | $ids | Directory entry ids of the files to copy |
| copy_action |
( |
|
$file_id, |
|
|
|
$source_id = null |
|
) |
| |
Copy a file to another folder.
- Parameters
-
| String | $file_id | Direcory entry id of the file to copy (use 'flashed' to read ids from from flash memory for a bulk operation) |
| mixed | $source_id | Optional folder id to return to after operation has succeeded |
Deletes a file.
- Parameters
-
| String | $id | Directory entry id of the file to delete |
Edits a file.
- Parameters
-
| String | $entry_id | Directory entry id of the file |
| index_action |
( |
|
$dir_id = null | ) |
|
Displays the files in a speicfic folder.
- Parameters
-
| mixed | $dir_id | Directory entry id of the folder (default to root) |
| move_action |
( |
|
$file_id, |
|
|
|
$source_id = null |
|
) |
| |
Move a file to another folder.
- Parameters
-
| String | $file_id | Direcory entry id of the file to move (use 'flashed' to read ids from from flash memory for a bulk operation) |
| mixed | $source_id | Optional folder id to return to after operation has succeeded |
| upload_action |
( |
|
$folder_id | ) |
|
Upload a new file.
- Parameters
-
| String | $folder_id | Directory entry id of the folder to upload to |
The documentation for this class was generated from the following file: