function xmlrpc_test_many_types_test in xmlrpc 8
Test function accepting multiple parameters of different types.
Parameters
int $number: An integer value.
bool $boolean: A boolean value.
string $string: A string value.
float $double: A floating-point value.
object $date_time: A XML-RPC date/time object.
string $base64: A XML-RPC base64 object.
Return value
array An array combining the arguments.
1 call to xmlrpc_test_many_types_test()
- XmlRpcValidatorTest::testValidator in src/
Tests/ XmlRpcValidatorTest.php - Run validator1 tests.
1 string reference to 'xmlrpc_test_many_types_test'
- xmlrpc_test_xmlrpc in tests/
modules/ xmlrpc_test/ xmlrpc_test.module - Implements hook_xmlrpc().
File
- tests/
modules/ xmlrpc_test/ xmlrpc_test.module, line 91 - Test module to support XmlRpcMessagesTest and XmlRpcValidatorTest.
Code
function xmlrpc_test_many_types_test($number, $boolean, $string, $double, $date_time, $base64) {
$timestamp = gmmktime($date_time->hour, $date_time->minute, $date_time->second, $date_time->month, $date_time->day, $date_time->year);
return [
$number,
$boolean,
$string,
$double,
xmlrpc_date($timestamp),
xmlrpc_Base64($base64),
];
}