|
|
|
@ -41,7 +41,7 @@ class GatewayKeyword
|
|
|
|
|
|
|
|
|
|
public function getKeywordsContentByReference(int $id): array
|
|
|
|
|
{
|
|
|
|
|
$query = "SELECT k.* FROM Keyword k, Reference r
|
|
|
|
|
$query = "SELECT k.* FROM Keyword k, Reference r
|
|
|
|
|
WHERE k.word = r.keyword AND r.possibleResponse = :id";
|
|
|
|
|
$this->connection->executeQuery($query, array(
|
|
|
|
|
':id' => array($id, PDO::PARAM_STR)
|
|
|
|
@ -49,11 +49,10 @@ class GatewayKeyword
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$tab = [];
|
|
|
|
|
foreach ($this->connection->getResults() as $result)
|
|
|
|
|
{
|
|
|
|
|
foreach ($this->connection->getResults() as $result) {
|
|
|
|
|
$tab[] = $result["word"];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $tab;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|