public function add_external_function_to_service($functionname, $serviceid) {
        global $DB;
        $addedfunction = new stdClass();
        $addedfunction->externalserviceid = $serviceid;
        $addedfunction->functionname = $functionname;
        $DB->insert_record('external_services_functions', $addedfunction);
    }
public function add_external_function_to_service($functionname, $serviceid) {
        global $DB;
        $addedfunction = new stdClass();
        $addedfunction->externalserviceid = $serviceid;
        $addedfunction->functionname = $functionname;
        $DB->insert_record('external_services_functions', $addedfunction);
    }
public function add_external_function_to_service ( $ functionname , $ serviceid ) { global $ DB ; $ addedfunction = new stdClass ( ) ; $ addedfunction -> externalserviceid = $ serviceid ; $ addedfunction -> functionname = $ functionname ; $ DB -> insert_record ( 'external_services_functions' , $ addedfunction ) ; }
Add a function to a service

@param string $functionname function name
@param int $serviceid service id
Add a function to a service