|
| | before_filter (&$action, &$args) |
| |
| | index_action ($dir_id=null, $page=1) |
| |
| | upload_action ($folder_id, $page=1) |
| |
| | edit_action ($entry_id) |
| |
| | move_action ($file_id, $source_id=null) |
| |
| | copy_action ($file_id, $source_id=null) |
| |
| | delete_action ($id) |
| |
| | bulk_action ($folder_id, $page=1) |
| |
| | settings_action ($limit, $page, $directory) |
| |
| | before_filter (&$action, &$args) |
| |
| | url_for_parent_directory ($entry, $parent_id=null) |
| |
| | before_filter (&$action, &$args) |
| |
| | perform ($unconsumed_path) |
| |
| | after_filter ($action, $args) |
| |
| | validate_args (&$args, $types=NULL) |
| |
| | url_for ($to='') |
| |
| | link_for ($to='') |
| |
| | relocate ($to) |
| |
| | rescue ($exception) |
| |
| | setInfoBoxImage ($image) |
| |
| | addToInfobox ($category, $text, $icon='blank.gif') |
| |
| | render_json ($data) |
| |
| | relay ($to_uri) |
| |
| | perform_relayed ($unconsumed) |
| |
| | render_template_as_string ($template, $layout=null) |
| |
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 @license 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)
◆ before_filter()
| 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()
| bulk_action |
( |
|
$folder_id, |
|
|
|
$page = 1 |
|
) |
| |
General handler for bulk actions. Support the following actions:
- Download
- Move
- Copy
- Delete
- Parameters
-
| String | $folder_id | Directory entry id of the origin folder |
◆ checkCopyQuota()
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()
| 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 |
◆ delete_action()
Deletes a file.
- Parameters
-
| String | $id | Directory entry id of the file to delete |
◆ edit_action()
Edits a file.
- Parameters
-
| String | $entry_id | Directory entry id of the file |
◆ index_action()
| index_action |
( |
|
$dir_id = null, |
|
|
|
$page = 1 |
|
) |
| |
Displays the files in a speicfic folder.
- Parameters
-
| mixed | $dir_id | Directory entry id of the folder (default to root) |
◆ move_action()
| 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 |
◆ settings_action()
| settings_action |
( |
|
$limit, |
|
|
|
$page, |
|
|
|
$directory |
|
) |
| |
◆ upload_action()
| upload_action |
( |
|
$folder_id, |
|
|
|
$page = 1 |
|
) |
| |
Upload a new file.
- Parameters
-
| String | $folder_id | Directory entry id of the folder to upload to |
◆ $possible_limits
| $possible_limits = array(20, 50, 100) |
|
staticprotected |
The documentation for this class was generated from the following file: