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
c143688e
Commit
c143688e
authored
Sep 30, 2020
by
Dainis Abols
Browse files
Changed defaultreturn type to XML
Version 1.0.1
parent
1541cf77
Pipeline
#133
failed with stages
in 0 seconds
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
c143688e
...
...
@@ -15,8 +15,7 @@ $schools = $ViisSchools->getSchoolList();
| Method | Description |
| --------------------------------- | ----------------------------------------- |
| VIISSchools::setTestEnvironment() | Set test environment flag |
| VIISSchools::setReturnType() | Change return type. Possible options:
<br>
ReturnType::
JSON
*Default*
<br>
ReturnType::
XML
<br>
ReturnType::ARRAY
<br>
ReturnType::OBJECT |
| VIISSchools::setReturnType() | Change return type. Possible options:
<br>
ReturnType::
XML
*Default*
<br>
ReturnType::
JSON
<br>
ReturnType::ARRAY
<br>
ReturnType::OBJECT |
## Requirements
-
PHP 7.2
-
PHP SOAP Extension
composer.json
View file @
c143688e
{
"name"
:
"luitd/viis-schools"
,
"version"
:
"1.0.
0
"
,
"version"
:
"1.0.
1
"
,
"description"
:
"Connector for VIIS schools list. Fetches official active schools list."
,
"type"
:
"library"
,
"authors"
:
[
{
"name"
:
"Dainis Abols"
,
"email"
:
"dainis@dainisabols.lv"
"email"
:
"dainis@dainisabols.lv"
,
"role"
:
"Developer"
}
],
"license"
:
"GPL-3.0-or-later"
,
...
...
src/VIISSchools.php
View file @
c143688e
...
...
@@ -35,7 +35,7 @@ class VIISSchools
*
* @var string
*/
private
$returnType
=
ReturnType
::
JSON
;
private
$returnType
=
ReturnType
::
XML
;
/**
* Live connection url
...
...
@@ -119,16 +119,6 @@ class VIISSchools
$this
->
returnType
=
$returnType
;
}
/**
* Retrieve environment type
*
* @return string
*/
public
function
getEnvironment
()
{
return
$this
->
environment
;
}
/**
* Return const list of available return types
*
...
...
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