19 declare(strict_types=1);
31 protected \ilDBInterface
$db;
43 $set = $this->db->queryF(
44 "SELECT solution_rid FROM exc_assignment " .
49 $rec = $this->db->fetchAssoc($set);
50 return ($rec[
"solution_rid"] ??
"");
53 public function hasFile(
int $ass_id): bool
62 $this->wrapper->deliverFile($rid);
70 $rcid = $this->wrapper->importFileFromLegacyUpload(
78 "fb_file" => [
"text", $file_input[
"name"]],
79 "solution_rid" => [
"text", $rcid]
82 "id" => [
"integer", $ass_id]
94 $to_rid = $this->wrapper->cloneResource($from_rid);
99 "solution_rid" => [
"text", $to_rid]
102 "id" => [
"integer", $to_ass_id]
importFromLegacyUpload(int $ass_id, array $file_input, ResourceStakeholder $stakeholder)
getIdStringForAssId(int $ass_id)
__construct(CollectionWrapper $wrapper, \ilDBInterface $db)
CollectionWrapper $collection
clone(int $from_ass_id, int $to_ass_id)
CollectionWrapper $wrapper
Interface ResourceStakeholder.