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; + } } ?>