19 declare(strict_types=1);
28 private readonly
int $obj_id = 0,
29 private readonly
int $pos_id = 0
39 return $this->posting_cache[$this->pos_id] ?? ($this->posting_cache[$this->pos_id] =
new ilForumPost(
46 return $this->rc_implementation->getObjId();
51 return $this->rc_implementation->getPosId();
54 public function setPosId(
int $posting_id): void
56 $this->rc_implementation->setPosId($posting_id);
61 return $this->rc_implementation->getForumPath();
69 return $this->rc_implementation->getFilesOfPost();
74 return $this->rc_implementation->moveFilesOfPost($new_frm_id);
77 public function ilClone(
int $new_obj_id,
int $new_posting_id): bool
79 return $this->rc_implementation->ilClone($new_obj_id, $new_posting_id);
82 public function delete(?array $posting_ids_to_delete =
null):
bool 84 return $this->rc_implementation->delete($posting_ids_to_delete);
89 return $this->rc_implementation->storeUploadedFiles();
94 return $this->rc_implementation->unlinkFile($filename);
102 return $this->rc_implementation->getFileDataByMD5Filename($hashed_filename);
110 return $this->rc_implementation->unlinkFilesByMD5Filenames($hashed_filename_or_filenames);
115 $this->rc_implementation->deliverFile($file);
120 return $this->rc_implementation->deliverZipFile();
123 public function importPath(
string $path_to_file,
int $posting_id): void
127 $this->rc_implementation->importFileToCollection($path_to_file, $this->
getCurrentPosting());
ilClone(int $new_obj_id, int $new_posting_id)
unlinkFilesByMD5Filenames($hashed_filename_or_filenames)
deliverFile(string $file)
setPosId(int $posting_id)
unlinkFile(string $filename)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importPath(string $path_to_file, int $posting_id)
getFileDataByMD5Filename(string $hashed_filename)
readonly ilFileDataForumRCImplementation $rc_implementation
moveFilesOfPost(int $new_frm_id=0)
__construct(private readonly int $obj_id=0, private readonly int $pos_id=0)