Esempio n. 1
0
 /**
  * edits enquete
  */
 public function edit()
 {
     $json = $_POST['json'];
     $json = stripslashes($json);
     $enquete = json_decode($json, true);
     $name = $enquete['name'];
     $introduction = $enquete['introduction'];
     $start_date = $enquete['start_date'];
     $end_date = $enquete['end_date'];
     $questions = $enquete['questions'];
     $deleted_questions = $enquete['deleted_question'];
     $deleted_attributes = $enquete['deleted_attributes'];
     $enquete_id = $enquete['id'];
     $user_id = $_SESSION['user_id'];
     Enquete::edit($name, $introduction, $start_date, $end_date, $questions, $deleted_questions, $deleted_attributes, $enquete_id, $user_id);
 }