original_string: 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];
      }
code: 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];
      }
code_tokens: 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 ] ; }
docstring: Retrieves the human-readable value of a data request creation method.
  
  @param int $creation The request creation method.
  @return string
  @throws moodle_exception
docstring_tokens: Retrieves the human - readable value of a data request creation method .