aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/file.php
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2025-06-18 09:38:03 +0200
committerThomas Hackl <hackl@data-quest.de>2025-06-18 09:38:03 +0200
commit8768f66892f18eb8243b2cddb25b0b093ad25c0a (patch)
treef5b519309d140dad5301417c17229e3cc12ad802 /app/controllers/file.php
parent3bdaee3534c1e3adf190f278a213cb685cffee46 (diff)
Resolve "PDF-Dateien annotieren"
Closes #5397 Merge request studip/studip!4201
Diffstat (limited to 'app/controllers/file.php')
-rw-r--r--app/controllers/file.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/file.php b/app/controllers/file.php
index e0cfa44..1dbbf96 100644
--- a/app/controllers/file.php
+++ b/app/controllers/file.php
@@ -1578,6 +1578,13 @@ class FileController extends AuthenticatedController
}
}
+ /**
+ * Display the data-dialog UI to annotate the given fileref in PDF.js (for grading homework).
+ */
+ public function annotate_pdf_action($file_ref_id) {
+ $this->file_ref = FileRef::find($file_ref_id)->toRawArray();
+ $this->userFullname = User::findCurrent()->getFullName();
+ }
protected function loadFiles($param = 'files', $plugin = null, $with_blob = false)
{