mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
webservice MDL-23083 Zend SOAP does not support struct in the phpdoc
This commit is contained in:
parent
7d2b6e8cbe
commit
e93b82d746
1 changed files with 2 additions and 2 deletions
|
@ -654,7 +654,7 @@ class '.$classname.' {
|
||||||
$type = 'string';
|
$type = 'string';
|
||||||
}
|
}
|
||||||
} else if ($keydesc instanceof external_single_structure) {
|
} else if ($keydesc instanceof external_single_structure) {
|
||||||
$type = 'struct';
|
$type = 'object|struct'; //only 'object' is supported by SOAP, 'struct' by XML-RPC MDL-23083
|
||||||
} else if ($keydesc instanceof external_multiple_structure) {
|
} else if ($keydesc instanceof external_multiple_structure) {
|
||||||
$type = 'array';
|
$type = 'array';
|
||||||
}
|
}
|
||||||
|
@ -680,7 +680,7 @@ class '.$classname.' {
|
||||||
$type = 'string';
|
$type = 'string';
|
||||||
}
|
}
|
||||||
} else if ($function->returns_desc instanceof external_single_structure) {
|
} else if ($function->returns_desc instanceof external_single_structure) {
|
||||||
$type = 'struct';
|
$type = 'object|struct'; //only 'object' is supported by SOAP, 'struct' by XML-RPC MDL-23083
|
||||||
} else if ($function->returns_desc instanceof external_multiple_structure) {
|
} else if ($function->returns_desc instanceof external_multiple_structure) {
|
||||||
$type = 'array';
|
$type = 'array';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue