add seiralmanager #66

This commit is contained in:
stubbfel
2013-07-01 17:47:45 +02:00
parent 802b561187
commit aa03fdcd1b
10 changed files with 83 additions and 23 deletions

View File

@@ -4,7 +4,6 @@ namespace api;
include_once "../../global.inc.php";
include_once PATH_DATABASE . "/PisSqlManager.php";
include_once PATH_UTILITTY . "/XmlManager.php";
include_once PATH_UTILITTY . "/ArrayManager.php";
require_once PATH_API . "/Api.php";
@@ -30,9 +29,9 @@ class PisApi extends Api {
/**
* Default-Constructor
*/
public function __construct() {
public function __construct($headers = array()) {
$this->sqlManager = new \database\PisSqlManager();
parent::__construct();
parent::__construct($headers);
}
/**
@@ -51,7 +50,8 @@ class PisApi extends Api {
$pidList = \utiliy\ArrayManager::removeEmptyItmes($queryArgs);
if (count($pidList) < $this->maxPid) {
$result = $this->sqlManager->sendPisQuery($pidList);
return \utiliy\XmlManager::arrayToPisXml($result);
return $this->serialManager->arrayToPis($result);
}
return NULL;
}