Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan-Hendrik Willms
Stud.IP
Commits
79cd055e
Commit
79cd055e
authored
3 years ago
by
Elmar Ludwig
Browse files
Options
Downloads
Patches
Plain Diff
convert xmlrpc_dispatcher to new API, re #232
parent
b64edf0a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vendor/studip_ws/xmlrpc_dispatcher.php
+5
-3
5 additions, 3 deletions
vendor/studip_ws/xmlrpc_dispatcher.php
with
5 additions
and
3 deletions
vendor/studip_ws/xmlrpc_dispatcher.php
+
5
−
3
View file @
79cd055e
...
@@ -36,19 +36,21 @@ class Studip_Ws_XmlrpcDispatcher extends Studip_Ws_Dispatcher {
...
@@ -36,19 +36,21 @@ class Studip_Ws_XmlrpcDispatcher extends Studip_Ws_Dispatcher {
function
dispatch
(
$msg
=
NULL
)
{
function
dispatch
(
$msg
=
NULL
)
{
# ensure correct invocation
# ensure correct invocation
if
(
is_null
(
$msg
)
||
!
is_a
(
$msg
,
'
x
mlrpc
msg
'
))
if
(
is_null
(
$msg
)
||
!
is_a
(
$msg
,
'
PhpX
mlrpc
\Request
'
))
return
$this
->
throw_exception
(
'functions_parameters_type must not be '
.
return
$this
->
throw_exception
(
'functions_parameters_type must not be '
.
'phpvals.'
);
'phpvals.'
);
$encoder
=
new
PhpXmlRpc\Encoder
();
# get decoded parameters
# get decoded parameters
$len
=
$msg
->
getNumParams
();
$len
=
$msg
->
getNumParams
();
$argument_array
=
array
();
$argument_array
=
array
();
for
(
$i
=
0
;
$i
<
$len
;
++
$i
)
for
(
$i
=
0
;
$i
<
$len
;
++
$i
)
$argument_array
[]
=
php_xmlrpc_
decode
(
$msg
->
getParam
(
$i
));
$argument_array
[]
=
$encoder
->
decode
(
$msg
->
getParam
(
$i
));
# return result
# return result
return
new
xmlrpcresp
(
return
new
xmlrpcresp
(
php_xmlrpc_
encode
(
$this
->
invoke
(
$msg
->
method
(),
$argument_array
)));
$encoder
->
encode
(
$this
->
invoke
(
$msg
->
method
(),
$argument_array
)));
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment