|
|
@ -5,6 +5,7 @@ class Enigme
|
|
|
|
private string $idEnigme;
|
|
|
|
private string $idEnigme;
|
|
|
|
private string $enonce;
|
|
|
|
private string $enonce;
|
|
|
|
private string $aide;
|
|
|
|
private string $aide;
|
|
|
|
|
|
|
|
private string $admin;
|
|
|
|
private string $rappel;
|
|
|
|
private string $rappel;
|
|
|
|
private string $solution;
|
|
|
|
private string $solution;
|
|
|
|
private string $test;
|
|
|
|
private string $test;
|
|
|
@ -19,7 +20,7 @@ class Enigme
|
|
|
|
* @param string $test
|
|
|
|
* @param string $test
|
|
|
|
* @param int $tempsDeResolution
|
|
|
|
* @param int $tempsDeResolution
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function __construct(string $idEnigme, string $enonce, string $aide, string $rappel, string $solution, string $test, int $tempsDeResolution)
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$arguments=func_get_args();
|
|
|
|
$arguments=func_get_args();
|
|
|
|
$index=func_num_args();
|
|
|
|
$index=func_num_args();
|
|
|
@ -27,21 +28,42 @@ class Enigme
|
|
|
|
call_user_func(array(array($this,$function),$arguments));
|
|
|
|
call_user_func(array(array($this,$function),$arguments));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function __constructMulti(string $idEnigme, string $enonce, string $solution, string $test, int $tempsDeResolution){
|
|
|
|
public function __constructMulti(string $idEnigme, string $enonce, string $solution, string $test, int $tempsDeResolution,string $admin){
|
|
|
|
$this->idEnigme=$idEnigme;
|
|
|
|
$this->idEnigme=$idEnigme;
|
|
|
|
$this->enonce=$enonce;
|
|
|
|
$this->enonce=$enonce;
|
|
|
|
$this->solution=$solution;
|
|
|
|
$this->solution=$solution;
|
|
|
|
$this->test=$test;
|
|
|
|
$this->test=$test;
|
|
|
|
$this->tempsDeResolution=$tempsDeResolution;
|
|
|
|
$this->tempsDeResolution=$tempsDeResolution;
|
|
|
|
|
|
|
|
$this->aide=NULL;
|
|
|
|
|
|
|
|
$this->rappel=NULL;
|
|
|
|
|
|
|
|
$this->admin=$admin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function __constructSolo(string $idEnigme, string $enonce, string $aide, string $rappel, string $solution, string $test){
|
|
|
|
public function __constructSolo(string $idEnigme, string $enonce, string $aide, string $rappel, string $solution, string $test,string $admin){
|
|
|
|
$this->idEnigme=$idEnigme;
|
|
|
|
$this->idEnigme=$idEnigme;
|
|
|
|
$this->enonce=$enonce;
|
|
|
|
$this->enonce=$enonce;
|
|
|
|
$this->aide=$aide;
|
|
|
|
$this->aide=$aide;
|
|
|
|
$this->rappel=$rappel;
|
|
|
|
$this->rappel=$rappel;
|
|
|
|
$this->solution=$solution;
|
|
|
|
$this->solution=$solution;
|
|
|
|
$this->test=$test;
|
|
|
|
$this->test=$test;
|
|
|
|
|
|
|
|
$this->tempsDeResolution=0;
|
|
|
|
|
|
|
|
$this->admin=$admin;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @return string
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function getAdmin(): string
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return $this->admin;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @param string $admin
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public function setAdmin(string $admin): void
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->admin = $admin;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|