ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CriteriaFileManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
28
30{
31 protected \ILIAS\Exercise\PeerReview\Criteria\CriteriaFileRepository $repo;
32 protected \ilLogger $log;
33
34 public function __construct(
36 protected InternalDomainService $domain,
37 protected \ilExcPeerReviewFileStakeholder $stakeholder,
38 protected int $ass_id
39 ) {
40 $this->log = $domain->logger()->exc();
41 $this->repo = $repo->peerReview()->criteriaFile();
42 }
43
44 public function deliverFileOfReview(int $giver_id, int $peer_id, int $criteria_id): void
45 {
46 $this->repo->deliverFileOfReview($this->ass_id, $giver_id, $peer_id, $criteria_id);
47 }
48
49 public function getStream(string $rid): FileStream
50 {
51 return $this->repo->getStream($rid);
52 }
53
54 public function getFile(
55 int $giver_id,
56 int $peer_id,
57 int $citeria_id
58 ): ?CriteriaFile {
59 return $this->repo->getFile(
60 $this->ass_id,
61 $giver_id,
62 $peer_id,
63 $citeria_id
64 );
65 }
66
67 public function addFromLegacyUpload(
68 array $file,
69 int $giver_id,
70 int $peer_id,
71 int $criteria_id
72 ): void {
73 $this->repo->addFromLegacyUpload(
74 $this->ass_id,
75 $file,
76 $this->stakeholder,
77 $giver_id,
78 $peer_id,
79 $criteria_id
80 );
81 }
82
83 public function delete(
84 int $giver_id,
85 int $peer_id,
86 int $criteria_id
87 ): void {
88 $this->repo->delete(
89 $this->ass_id,
90 $this->stakeholder,
91 $giver_id,
92 $peer_id,
93 $criteria_id
94 );
95 }
96}
Internal factory for data objects.
deliverFileOfReview(int $giver_id, int $peer_id, int $criteria_id)
addFromLegacyUpload(array $file, int $giver_id, int $peer_id, int $criteria_id)
__construct(InternalRepoService $repo, protected InternalDomainService $domain, protected \ilExcPeerReviewFileStakeholder $stakeholder, protected int $ass_id)
ILIAS Exercise PeerReview Criteria CriteriaFileRepository $repo
getFile(int $giver_id, int $peer_id, int $citeria_id)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
The base interface for all filesystem streams.
Definition: FileStream.php:32