コード例 #1
0
 function __construct($nomFichier)
 {
     $this->nomFichier = $nomFichier;
     $tampon = explode("_", $nomFichier);
     //ID DU SONDAGE EN SEPARANT A PARTIR DU _
     $this->id = $tampon[1];
     $this->cnx = Connexion::seConnecter("mysql", "localhost", "sondage", "root", "");
     $this->mesQuestions = $this->getQuestions();
 }
コード例 #2
0
 function __construct()
 {
     $question = new Questions($_SESSION['id'], $_REQUEST['libelle'], $_REQUEST['type']);
     $question->ajouterQuestions(Connexion::seConnecter("mysql", "localhost", "sondage", "root", ""));
 }
コード例 #3
0
ファイル: Controller.php プロジェクト: nga28/Haroun
 protected function getCnx()
 {
     return $this->cnx = Connexion::seConnecter("mysql", "localhost", "sondage", "root", "");
 }