From a8641b7baa5392d20c05f5ac876f2f1a0e3af0ef Mon Sep 17 00:00:00 2001 From: Jeremy DUCOURTHIAL Date: Wed, 7 Dec 2022 09:02:29 +0100 Subject: [PATCH] getSource --- gatewaySources.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gatewaySources.php b/gatewaySources.php index 3170e38..c4bebb8 100644 --- a/gatewaySources.php +++ b/gatewaySources.php @@ -23,6 +23,17 @@ class GatewaySources ) ); } + + public function getSource($username,$password) + { + $query = "SELECT * FROM sources"; + $this->con->executeQuery($query, array()); + $results=$this->con->getResults(); + Foreach ($results as $source){ + $listeSources[] = new News($source["link"]); + } + return $listeSources; + } } ?>