public static function get_tool_proxy_registration_request($id) {
        $params = self::validate_parameters(self::get_tool_proxy_registration_request_parameters(),
                                            array(
                                                'id' => $id,
                                            ));
        $id = $params['id'];

        $context = context_system::instance();
        self::validate_context($context);
        require_capability('moodle/site:config', $context);

        $toolproxy = lti_get_tool_proxy($id);
        return lti_build_registration_request($toolproxy);
    }
public static function get_tool_proxy_registration_request($id) {
        $params = self::validate_parameters(self::get_tool_proxy_registration_request_parameters(),
                                            array(
                                                'id' => $id,
                                            ));
        $id = $params['id'];

        $context = context_system::instance();
        self::validate_context($context);
        require_capability('moodle/site:config', $context);

        $toolproxy = lti_get_tool_proxy($id);
        return lti_build_registration_request($toolproxy);
    }
public static function get_tool_proxy_registration_request ( $ id ) { $ params = self :: validate_parameters ( self :: get_tool_proxy_registration_request_parameters ( ) , array ( 'id' => $ id , ) ) ; $ id = $ params [ 'id' ] ; $ context = context_system :: instance ( ) ; self :: validate_context ( $ context ) ; require_capability ( 'moodle/site:config' , $ context ) ; $ toolproxy = lti_get_tool_proxy ( $ id ) ; return lti_build_registration_request ( $ toolproxy ) ; }
Returns the registration request for a tool proxy.

@param int $id the lti instance id
@return array of registration parameters
@since Moodle 3.1
@throws moodle_exception
Returns the registration request for a tool proxy .