public static function get_request_creation_method_string($creation) {
        $creationmethods = self::get_request_creation_methods();
        if (!isset($creationmethods[$creation])) {
            throw new moodle_exception('errorinvalidrequestcreationmethod', 'tool_dataprivacy');
        }

        return $creationmethods[$creation];
    }
public static function get_request_creation_method_string($creation) {
        $creationmethods = self::get_request_creation_methods();
        if (!isset($creationmethods[$creation])) {
            throw new moodle_exception('errorinvalidrequestcreationmethod', 'tool_dataprivacy');
        }

        return $creationmethods[$creation];
    }
public static function get_request_creation_method_string ( $ creation ) { $ creationmethods = self :: get_request_creation_methods ( ) ; if ( ! isset ( $ creationmethods [ $ creation ] ) ) { throw new moodle_exception ( 'errorinvalidrequestcreationmethod' , 'tool_dataprivacy' ) ; } return $ creationmethods [ $ creation ] ; }
Retrieves the human-readable value of a data request creation method.

@param int $creation The request creation method.
@return string
@throws moodle_exception
Retrieves the human - readable value of a data request creation method .