mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-06-24 09:08:47 +02:00
Design phases 1 & 2
This commit is contained in:
@ -79,9 +79,9 @@ class Question
|
||||
null,
|
||||
null,
|
||||
null];
|
||||
for ($_ = 0; $_ < 6; ++$_) {
|
||||
$req = $DB->prepare("INSERT INTO `questions`(`from`, `to`, `problem`, `question`) VALUES (?, ?, ?, ?);");
|
||||
$req->execute([$from->getId(), $to->getId(), $from->getProblem(), $default_questions[$_]]);
|
||||
for ($i = 0; $i < 6; ++$i) {
|
||||
$req = $DB->prepare("INSERT INTO `questions`(`from`, `to`, `problem`, `number`, `question`) VALUES (?, ?, ?, ?, ?);");
|
||||
$req->execute([$from->getId(), $to->getId(), $from->getProblem(), $i, $default_questions[$i]]);
|
||||
}
|
||||
return self::getQuestions($from, $to);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ class Team
|
||||
$this->encadrant = $data["encadrant"];
|
||||
$this->participants = [$data["participant_1"], $data["participant_2"], $data["participant_3"], $data["participant_4"], $data["participant_5"]];
|
||||
$this->inscription_date = $data["inscription_date"];
|
||||
$this->allow_publish = $data["allow_publish"];
|
||||
$this->allow_publish = $data["allow_publish"] ? 1 : 0;
|
||||
$this->validation_status = ValidationStatus::fromName($data["validation_status"]);
|
||||
$this->video_team_ids = [$data["video_team1"], $data["video_team2"]];
|
||||
$this->access_code = $data["access_code"];
|
||||
|
Reference in New Issue
Block a user