Exemplo n.º 1
0
 function __construct()
 {
     $this->id = $_POST['id'];
     $this->cnx = parent::getCnx();
     $this->mesQuestions = Sondage::getQuestions($this->cnx, $this->id);
     $this->nomFichier = "statistiques_sondage_" . $this->id . ".csv";
 }
Exemplo n.º 2
0
 function __construct()
 {
     $this->mesQuestions = Sondage::getQuestions(parent::getCnx(), $_SESSION['id']);
     if (isset($_REQUEST['action'])) {
         if ($_REQUEST['action'] == 'suppr') {
             $this->mesQuestions[$_REQUEST['id']]->supprimerQuestion(parent::getCnx());
         }
     }
 }
Exemplo n.º 3
0
 public function enregistrerSondage()
 {
     $sondage = new Sondage($_POST['nom'], $_POST['type']);
     $sondage->validerSondage(parent::getCnx(), $_POST['sujet']);
 }