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.
28 lines
776 B
28 lines
776 B
<?php
|
|
|
|
class GatewayConfigAdmin
|
|
{
|
|
private $con;
|
|
|
|
public function __construct($con){
|
|
$this->con = $con;
|
|
}
|
|
|
|
public function getConfigAdmin($idConfig)
|
|
{
|
|
$query = "SELECT * FROM configadmin WHERE :idConfig;";
|
|
$this->con->executeQuery($query, array(':idConfig' => array($idConfig, PDO::PARAM_STR)));
|
|
$results=$this->con->getResults();
|
|
return $results[0]["value"];
|
|
}
|
|
|
|
public function updateConfigAdmin($idConfig,$value)
|
|
{
|
|
$query = "UPDATE configadmin SET value = :value WHERE idconfig = :idConfig;";
|
|
$this->con->executeQuery($query, array(':value' => array($value,PDO::PARAM_STR),
|
|
':idConfig' => array($idConfig,PDO::PARAM_STR)));
|
|
}
|
|
}
|
|
|
|
?>
|