public static function get_request_type_string($requesttype) {
        $types = self::get_request_types();
        if (!isset($types[$requesttype])) {
            throw new moodle_exception('errorinvalidrequesttype', 'tool_dataprivacy');
        }
        return $types[$requesttype];
    }
public static function get_request_type_string($requesttype) {
        $types = self::get_request_types();
        if (!isset($types[$requesttype])) {
            throw new moodle_exception('errorinvalidrequesttype', 'tool_dataprivacy');
        }
        return $types[$requesttype];
    }
public static function get_request_type_string ( $ requesttype ) { $ types = self :: get_request_types ( ) ; if ( ! isset ( $ types [ $ requesttype ] ) ) { throw new moodle_exception ( 'errorinvalidrequesttype' , 'tool_dataprivacy' ) ; } return $ types [ $ requesttype ] ; }
Retrieves the human-readable text value of a data request type.

@param int $requesttype The request type.
@return string
@throws coding_exception
@throws moodle_exception
Retrieves the human - readable text value of a data request type .