ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDataService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Exercise;
22
29
34{
35 public function __construct()
36 {
37 }
38
39 public function assignment(
40 int $id,
41 int $exc_id,
42 string $title,
43 int $order_nr,
44 int $type,
45 string $instructions,
46 bool $mandatory,
47 int $deadline_mode,
48 int $deadline,
49 int $deadline2,
50 int $relative_deadline,
51 int $rel_deadline_last_submission
52 ): Assignment {
54 $id,
55 $exc_id,
56 $title,
57 $order_nr,
58 $type,
59 $instructions,
60 $mandatory,
61 $deadline_mode,
62 $deadline,
63 $deadline2,
64 $relative_deadline,
65 $rel_deadline_last_submission
66 );
67 }
68
69 public function resourceInformation(
70 string $rid,
71 string $title,
72 int $size,
73 int $creation_timestamp,
74 string $mime_type,
75 string $src
78 $rid,
79 $title,
80 $size,
81 $creation_timestamp,
82 $mime_type,
83 $src
84 );
85 }
86
87 public function teamMember(
88 int $team_id,
89 int $assignment_id,
90 int $user_id
91 ): TeamMember {
93 $team_id,
94 $assignment_id,
96 );
97 }
98
99 public function submission(
100 int $id,
101 int $ass_id,
102 int $user_id,
103 int $team_id = 0,
104 string $title = "",
105 string $text = "",
106 string $rid = "",
107 string $mimetype = "",
108 string $timestamp = "",
109 bool $late = false
110 ): Submission {
111 return new Submission(
112 $id,
113 $ass_id,
114 $user_id,
115 $team_id,
116 $title,
117 $text,
118 $rid,
119 $mimetype,
121 $late
122 );
123 }
124
125 public function criteriaFile(
126 int $ass_id,
127 int $giver_id,
128 int $peer_id,
129 int $criteria_id,
130 string $rid,
131 string $title
132 ): CriteriaFile {
134 $ass_id,
135 $giver_id,
136 $peer_id,
137 $criteria_id,
138 $rid,
139 $title
140 );
141 }
142
143 public function settings(
144 int $obj_id = 0,
145 string $instruction = "",
146 int $time_stamp = 0,
147 string $pass_mode = \ilObjExercise::PASS_MODE_ALL,
148 int $nr_mandatory_random = 0,
149 int $pass_nr = 0,
150 bool $show_submissions = false,
151 bool $compl_by_submission = false,
152 int $certificate_visibility = 0,
153 int $tfeedback = 7
154 ): Settings {
155 return new Settings(
156 $obj_id,
157 $instruction,
158 $time_stamp,
159 $pass_mode,
160 $nr_mandatory_random,
161 $pass_nr,
162 $show_submissions,
163 $compl_by_submission,
164 $certificate_visibility,
165 $tfeedback
166 );
167 }
168}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
Internal factory for data objects.
submission(int $id, int $ass_id, int $user_id, int $team_id=0, string $title="", string $text="", string $rid="", string $mimetype="", string $timestamp="", bool $late=false)
resourceInformation(string $rid, string $title, int $size, int $creation_timestamp, string $mime_type, string $src)
assignment(int $id, int $exc_id, string $title, int $order_nr, int $type, string $instructions, bool $mandatory, int $deadline_mode, int $deadline, int $deadline2, int $relative_deadline, int $rel_deadline_last_submission)
criteriaFile(int $ass_id, int $giver_id, int $peer_id, int $criteria_id, string $rid, string $title)
teamMember(int $team_id, int $assignment_id, int $user_id)
settings(int $obj_id=0, string $instruction="", int $time_stamp=0, string $pass_mode=\ilObjExercise::PASS_MODE_ALL, int $nr_mandatory_random=0, int $pass_nr=0, bool $show_submissions=false, bool $compl_by_submission=false, int $certificate_visibility=0, int $tfeedback=7)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...