public function get_external_service_by_id($serviceid, $strictness=IGNORE_MISSING) {
        global $DB;
        $service = $DB->get_record('external_services',
                        array('id' => $serviceid), '*', $strictness);
        return $service;
    }
public function get_external_service_by_id($serviceid, $strictness=IGNORE_MISSING) {
        global $DB;
        $service = $DB->get_record('external_services',
                        array('id' => $serviceid), '*', $strictness);
        return $service;
    }
public function get_external_service_by_id ( $ serviceid , $ strictness = IGNORE_MISSING ) { global $ DB ; $ service = $ DB -> get_record ( 'external_services' , array ( 'id' => $ serviceid ) , '*' , $ strictness ) ; return $ service ; }
Get an external service for a given service id

@param int $serviceid service id
@param int $strictness IGNORE_MISSING, MUST_EXIST...
@return stdClass external service
Get an external service for a given service id