ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.InternalDataService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace 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 {
53  return new 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
77  return new ResourceInformation(
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 {
92  return new TeamMember(
93  $team_id,
94  $assignment_id,
95  $user_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,
120  $timestamp,
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 {
133  return new 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 }
teamMember(int $team_id, int $assignment_id, int $user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
criteriaFile(int $ass_id, int $giver_id, int $peer_id, int $criteria_id, string $rid, string $title)
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)
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)
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)
resourceInformation(string $rid, string $title, int $size, int $creation_timestamp, string $mime_type, string $src)
Internal factory for data objects.
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23