ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilFileDataForumDrafts.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
24
25 public function __construct(
26 private readonly int $obj_id = 0,
27 private readonly int $draft_id = 0
28 ) {
29 $this->rc_implementation = new ilFileDataForumDraftsRCImplementation(
30 $this->obj_id,
31 $this->draft_id
32 );
33 }
34
35 public function getObjId(): int
36 {
37 return $this->rc_implementation->getObjId();
38 }
39
40 public function getPosId(): int
41 {
42 return $this->rc_implementation->getPosId();
43 }
44
45 public function setPosId(int $posting_id): void
46 {
47 throw new DomainException('Not implemented');
48 }
49
50 public function getForumPath(): string
51 {
52 return $this->rc_implementation->getForumPath();
53 }
54
58 public function getFilesOfPost(): array
59 {
60 return $this->rc_implementation->getFilesOfPost();
61 }
62
63 public function moveFilesOfPost(int $new_frm_id = 0): bool
64 {
65 return $this->rc_implementation->moveFilesOfPost($new_frm_id);
66 }
67
68 public function ilClone(int $new_obj_id, int $new_posting_id): bool
69 {
70 return $this->rc_implementation->ilClone($new_obj_id, $new_posting_id);
71 }
72
73 public function delete(?array $posting_ids_to_delete = null): bool
74 {
75 return $this->rc_implementation->delete($posting_ids_to_delete);
76 }
77
78 public function storeUploadedFiles(): bool
79 {
80 return $this->rc_implementation->storeUploadedFiles();
81 }
82
83 public function unlinkFile(string $filename): bool
84 {
85 return $this->rc_implementation->unlinkFile($filename);
86 }
87
91 public function getFileDataByMD5Filename(string $hashed_filename): ?array
92 {
93 return $this->rc_implementation->getFileDataByMD5Filename($hashed_filename);
94 }
95
99 public function unlinkFilesByMD5Filenames($hashed_filename_or_filenames): bool
100 {
101 return $this->rc_implementation->unlinkFilesByMD5Filenames($hashed_filename_or_filenames);
102 }
103
104 public function deliverFile(string $file): void
105 {
106 $this->rc_implementation->deliverFile($file);
107 }
108
109 public function deliverZipFile(): bool
110 {
111 return $this->rc_implementation->deliverZipFile();
112 }
113}
$filename
Definition: buildRTE.php:78
unlinkFilesByMD5Filenames($hashed_filename_or_filenames)
readonly ilFileDataForumDraftsRCImplementation $rc_implementation
getFileDataByMD5Filename(string $hashed_filename)
ilClone(int $new_obj_id, int $new_posting_id)
__construct(private readonly int $obj_id=0, private readonly int $draft_id=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...