protected function encode_request($functionname, $params) {

        $outputoptions = array(
            'encoding' => 'utf-8',
            'escaping' => 'markup',
        );

        // See MDL-53962 - needed for backwards compatibility on <= 3.0.
        $params = array_values($params);

        return xmlrpc_encode_request($functionname, $params, $outputoptions);
    }
protected function encode_request($functionname, $params) {

        $outputoptions = array(
            'encoding' => 'utf-8',
            'escaping' => 'markup',
        );

        // See MDL-53962 - needed for backwards compatibility on <= 3.0.
        $params = array_values($params);

        return xmlrpc_encode_request($functionname, $params, $outputoptions);
    }
protected function encode_request ( $ functionname , $ params ) { $ outputoptions = array ( 'encoding' => 'utf-8' , 'escaping' => 'markup' , ) ; // See MDL-53962 - needed for backwards compatibility on <= 3.0. $ params = array_values ( $ params ) ; return xmlrpc_encode_request ( $ functionname , $ params , $ outputoptions ) ; }
Generates XML for a method request.

@param string $functionname Name of the method to call.
@param mixed $params Method parameters compatible with the method signature.
@return string
Generates XML for a method request .