parent
1587a63084
commit
33d3199a06
@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
require_once("sources.php");
|
||||||
|
class GatewaySources
|
||||||
|
{
|
||||||
|
private $con;
|
||||||
|
|
||||||
|
public function __construct($con){
|
||||||
|
$this->con = $con;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function addSources($sources)
|
||||||
|
{
|
||||||
|
$query = "insert into sources(link) values (:link);";
|
||||||
|
$this->con->executeQuery($query, array(':link' => array($sources->getLink(), PDO::PARAM_STR)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in new issue