add sps service
This commit is contained in:
@@ -43,11 +43,17 @@ abstract class SqlManager {
|
||||
private $link;
|
||||
|
||||
/**
|
||||
* String for a and operrator
|
||||
* String for an and-operrator
|
||||
* @var string
|
||||
*/
|
||||
protected $andTerm = " and ";
|
||||
|
||||
/**
|
||||
* String for an or-operrator
|
||||
* @var string
|
||||
*/
|
||||
protected $orTerm = " or ";
|
||||
|
||||
/**
|
||||
* String for quotes in a query
|
||||
* @var string
|
||||
@@ -69,6 +75,10 @@ abstract class SqlManager {
|
||||
*/
|
||||
public function __destruct() {
|
||||
$this->closeConnection();
|
||||
unset($this->serverAddress);
|
||||
unset($this->dbName);
|
||||
unset($this->userName);
|
||||
unset($this->userPW);
|
||||
$this->serverAddress = null;
|
||||
$this->dbName = null;
|
||||
$this->userName = null;
|
||||
@@ -95,6 +105,7 @@ abstract class SqlManager {
|
||||
public function closeConnection() {
|
||||
if ($this->link) {
|
||||
mysql_close($this->link);
|
||||
unset($this->link);
|
||||
$this->link = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user