add sps service

This commit is contained in:
stubbfel
2013-06-26 12:12:10 +02:00
parent 658987ba53
commit 1678b94dd5
10 changed files with 202 additions and 359 deletions

View File

@@ -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;
}
}