You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
409 B
19 lines
409 B
<?php
|
|
|
|
namespace model;
|
|
|
|
class ThematiqueGateway
|
|
{
|
|
private $con;
|
|
|
|
function __construct(Connection $con) {
|
|
$this->con = $con;
|
|
}
|
|
|
|
public function getFromId(int $id): array
|
|
{
|
|
$this->con->executeQuery("SELECT id, libelle FROM Thematique WHERE id=:id;",
|
|
[':id' => [$id, $this->con::PARAM_INT]]);
|
|
return $this->con->getOneResult();
|
|
}
|
|
} |