Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
D&T Internet GmbH
TYPO3 CMS HiOrg Integration
Commits
cd51841e
Commit
cd51841e
authored
May 14, 2021
by
Stefan Bublies
Browse files
Update Classes/Controller/HiOrgServerSchnittstelleController.php
parent
0b5b9881
Changes
1
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/HiOrgServerSchnittstelleController.php
View file @
cd51841e
...
...
@@ -30,6 +30,11 @@ namespace DTInternet\DtiHiorg\Controller;
/**
* HiOrgServerSchnittstelleController
*/
use
TYPO3\CMS\Core\Utility\DebugUtility
;
use
TYPO3\CMS\Core\Utility\GeneralUtility
;
use
TYPO3\CMS\Core\Page\PageRenderer
;
class
HiOrgServerSchnittstelleController
extends
\
TYPO3\CMS\Extbase\Mvc\Controller\ActionController
{
/**
...
...
@@ -40,6 +45,18 @@ class HiOrgServerSchnittstelleController extends \TYPO3\CMS\Extbase\Mvc\Controll
*/
protected
$hiOrgServerSchnittstelleRepository
=
NULL
;
/**
* Init
*
* @return void
*/
protected
function
initializeAction
()
{
parent
::
initializeAction
();
$pageRenderer
=
GeneralUtility
::
makeInstance
(
PageRenderer
::
class
);
$pageRenderer
->
addCssFile
(
'typo3conf/ext/dti_hiorg/Resources/Public/Stylesheets/drkcms_hiorg.css'
);
}
/**
* action list
*
...
...
@@ -53,10 +70,19 @@ class HiOrgServerSchnittstelleController extends \TYPO3\CMS\Extbase\Mvc\Controll
$aparams01
=
$this
->
settings
[
'hiorg'
][
'params01'
];
$aparams02
=
$this
->
settings
[
'hiorg'
][
'params02'
];
$aparams03
=
$this
->
settings
[
'hiorg'
][
'params03'
];
$akurs
typ
=
$this
->
settings
[
'hiorg'
][
'kurs
typ
'
];
$akurs
ConfigId
=
$this
->
settings
[
'hiorg'
][
'kurs
configid
'
];
$aintern
=
$this
->
settings
[
'hiorg'
][
'intern'
];
$akuerzel
=
$this
->
settings
[
'hiorg'
][
'include'
];
$url
=
"https://www.hiorg-server.de/"
.
$adisplay
.
(
$akurstyp
?
'kurstyp='
.
$akurstyp
:
''
)
.
(
$aintern
?
'nurint='
.
$aintern
:
''
)
.
"&ov=
$akuerzel
&onlytable=1"
.
(
$aparams01
?
'&monate='
.
$aparams01
:
''
)
.
(
$aparams02
?
'&anz='
.
$aparams02
:
''
)
.
(
$aparams03
?
'&gruppe='
.
$aparams03
:
''
);
$asandienstArt
=
$this
->
settings
[
'hiorg'
][
'sandienstart'
];
if
(
$adisplay
==
'kurse_extern.php?'
)
{
$url
=
"https://www.hiorg-server.de/"
.
$adisplay
.
'ov='
.
$akuerzel
.
'&'
.
(
$akursConfigId
?
'id='
.
$akursConfigId
:
''
);
}
elseif
(
$adisplay
==
'sanform.php?'
)
{
$url
=
"https://www.hiorg-server.de/"
.
$adisplay
.
'ov='
.
$akuerzel
.
(
$asandienstArt
?
'&art='
.
$asandienstArt
:
''
)
.
'&fromextern=1'
;
}
else
{
$url
=
"https://www.hiorg-server.de/"
.
$adisplay
.
(
$aintern
?
'nurint='
.
$aintern
:
''
)
.
"&ov=
$akuerzel
&onlytable=1"
.
(
$aparams01
?
'&monate='
.
$aparams01
:
''
)
.
(
$aparams02
?
'&anz='
.
$aparams02
:
''
)
.
(
$aparams03
?
'&gruppe='
.
$aparams03
:
''
);
}
if
(
function_exists
(
"curl_init"
))
{
$ch
=
curl_init
(
$url
);
curl_setopt
(
$ch
,
CURLOPT_RETURNTRANSFER
,
1
);
...
...
Write
Preview
Markdown
is supported
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