|
|
|
@ -48,7 +48,7 @@ class GatewayListResponseOfCandidate
|
|
|
|
|
{
|
|
|
|
|
$gatewayResponse = new GatewayResponse();
|
|
|
|
|
|
|
|
|
|
foreach ( $gatewayResponse->getResponsesIdByIdListCandidate($id) as $response){
|
|
|
|
|
foreach ($gatewayResponse->getResponsesIdByIdListCandidate($id) as $response) {
|
|
|
|
|
$gatewayResponse->deleteResponseById($response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -71,9 +71,9 @@ class GatewayListResponseOfCandidate
|
|
|
|
|
|
|
|
|
|
$idListQuestion = $this->connection->lastInsertId();
|
|
|
|
|
|
|
|
|
|
for($i = 0; $i < count($answer); $i++)
|
|
|
|
|
{
|
|
|
|
|
$idResponse = $gatewayResponse->insertResponse($gatewayQuestion->getQuestionContentById($id[$i]), $answer[$i], $category[$i]);
|
|
|
|
|
for ($i = 0; $i < count($answer); $i++) {
|
|
|
|
|
$question = $gatewayQuestion->getQuestionContentById($id[$i]);
|
|
|
|
|
$idResponse = $gatewayResponse->insertResponse($question, $answer[$i], $category[$i]);
|
|
|
|
|
|
|
|
|
|
$query = "INSERT INTO Submit (responsesCandidate, response) VALUES(:responsesCandidate, :response)";
|
|
|
|
|
$this->connection->executeQuery($query, array(
|
|
|
|
|