diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-20 17:08:01 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2025-01-20 17:08:01 +0100 |
| commit | 1257022fb3baa2ab6674437bb86422615f590160 (patch) | |
| tree | 1f5700e0b2aa4209aaf1e5931a03e2f559f9c3fe /app/controllers/files_dashboard/helpers.php | |
| parent | c8b6c7ae16126c1c918e4e78635f1e1b1b6ca627 (diff) | |
use objects instead of idstic-4946
Diffstat (limited to 'app/controllers/files_dashboard/helpers.php')
| -rw-r--r-- | app/controllers/files_dashboard/helpers.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/files_dashboard/helpers.php b/app/controllers/files_dashboard/helpers.php index 4489e04..dc759a1 100644 --- a/app/controllers/files_dashboard/helpers.php +++ b/app/controllers/files_dashboard/helpers.php @@ -10,9 +10,9 @@ trait Helpers /** * Create an action menu for a file. This method is used by the template. * - * @param FileRef $fileRef the file whose action shall be created - * @param FolderType $folder the file's folder - * @param User $user the user for whom the actions shall be created + * @param \FileRef $fileRef the file whose action shall be created + * @param \FolderType $folder the file's folder + * @param \User $user the user for whom the actions shall be created * * @return string the HTML fragment of the action menu */ @@ -37,7 +37,7 @@ trait Helpers ); } - if ($folder->isFileEditable($fileRef->id, $user->id)) { + if ($folder->isFileEditable($fileRef, $user->id)) { $actionMenu->addLink( URLHelper::getURL('dispatch.php/file/edit/'.$fileRef->id), _('Datei bearbeiten'), @@ -52,7 +52,7 @@ trait Helpers ); } - if ($folder->isFileWritable($fileRef->id, $user->id)) { + if ($folder->isFileWritable($fileRef, $user->id)) { $actionMenu->addLink( URLHelper::getURL('dispatch.php/file/choose_destination/move/'.$fileRef->id), _('Datei verschieben'), @@ -61,7 +61,7 @@ trait Helpers ); } - if ($folder->isFileDownloadable($fileRef->id, $user->id)) { + if ($folder->isFileDownloadable($fileRef, $user->id)) { $actionMenu->addLink( URLHelper::getURL('dispatch.php/file/choose_destination/copy/'.$fileRef->id), _('Datei kopieren'), @@ -70,7 +70,7 @@ trait Helpers ); } - if ($folder->isFileWritable($fileRef->id, $user->id)) { + if ($folder->isFileWritable($fileRef, $user->id)) { $actionMenu->addLink( URLHelper::getURL('dispatch.php/file/delete/'.$fileRef->id), _('Datei löschen'), |
