Commit 838773c1 authored by Dainis Abols's avatar Dainis Abols
Browse files

Author fixes

parent c143688e
{
"name": "luitd/viis-schools",
"version": "1.0.1",
"version": "1.0.2",
"description": "Connector for VIIS schools list. Fetches official active schools list.",
"type": "library",
"authors": [
......@@ -8,6 +8,11 @@
"name": "Dainis Abols",
"email": "dainis@dainisabols.lv",
"role": "Developer"
},
{
"name": "Arnis Voitkans",
"email": "arnivoit@lu.lv",
"role": "Developer"
}
],
"license": "GPL-3.0-or-later",
......
......@@ -6,6 +6,7 @@ namespace Lu\VIISSchools\Helpers;
* Class WsseAuthHeader
* Creates SOAP header object with main connection details
*
* @author Arnis Voitkans <arnis.voitkans@lu.lv>
* @author Dainis Abols <dainis.abols@lu.lv>
* @since 30.09.2020
*
......
......@@ -143,6 +143,7 @@ class VIISSchools
}
$schools = $this->fetchAllSchools();
return $this->returnSchools($schools);
}
......@@ -183,7 +184,7 @@ class VIISSchools
// Try connection
try {
$respObj = $this->soapClient->Execute([
'dataSetFilterCode' => 'Iestazu_info',
'dataSetFilterCode' => 'Iestazu_info',
]);
} catch (\SoapFault $e) {
throw new \Exception($e);
......@@ -207,9 +208,11 @@ class VIISSchools
default:
case ReturnType::JSON:
header('Content-type: application/json');
return json_encode(Builder::makeArray($schools));
case ReturnType::XML:
header('Content-Type: text/xml');
return $schools;
case ReturnType::ARRAY:
return Builder::makeArray($schools);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment