|
|
|
@ -19,7 +19,7 @@ class GatewayResponse
|
|
|
|
|
|
|
|
|
|
$result = $this->getResponsesIdByIdListCandidate($listResponsesOfCandidateId);
|
|
|
|
|
$tab = [];
|
|
|
|
|
foreach ($result as $row){
|
|
|
|
|
foreach ($result as $row) {
|
|
|
|
|
$tab[] = (new GatewayKeyword())->getKeywordsContentByCategorieze($row['id']);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -64,7 +64,7 @@ class GatewayResponse
|
|
|
|
|
$idResponse = $this->connection->lastInsertId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach ($category as $keyword){
|
|
|
|
|
foreach ($category as $keyword) {
|
|
|
|
|
$query = "INSERT INTO Categorize (response, keyword) VALUES(:response, :keyword)";
|
|
|
|
|
$this->connection->executeQuery($query, array(
|
|
|
|
|
':response' => array($idResponse, PDO::PARAM_STR),
|
|
|
|
@ -74,4 +74,4 @@ class GatewayResponse
|
|
|
|
|
|
|
|
|
|
return $idResponse;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|