Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open
VIIS Schools list
Commits
838773c1
Commit
838773c1
authored
Oct 01, 2020
by
Dainis Abols
Browse files
Author fixes
parent
c143688e
Changes
3
Hide whitespace changes
Inline
Side-by-side
composer.json
View file @
838773c1
{
"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"
,
...
...
src/Helpers/WsseAuthHeader.php
View file @
838773c1
...
...
@@ -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
*
...
...
src/VIISSchools.php
View file @
838773c1
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment