original_string: public static function get_forum_discussions_parameters() {
          return new external_function_parameters (
              array(
                  'forumid' => new external_value(PARAM_INT, 'forum instance id', VALUE_REQUIRED),
                  'sortorder' => new external_value(PARAM_INT,
                      'sort by this element: numreplies, , created or timemodified', VALUE_DEFAULT, -1),
                  'page' => new external_value(PARAM_INT, 'current page', VALUE_DEFAULT, -1),
                  'perpage' => new external_value(PARAM_INT, 'items per page', VALUE_DEFAULT, 0),
                  'groupid' => new external_value(PARAM_INT, 'group id', VALUE_DEFAULT, 0),
              )
          );
      }
code: public static function get_forum_discussions_parameters() {
          return new external_function_parameters (
              array(
                  'forumid' => new external_value(PARAM_INT, 'forum instance id', VALUE_REQUIRED),
                  'sortorder' => new external_value(PARAM_INT,
                      'sort by this element: numreplies, , created or timemodified', VALUE_DEFAULT, -1),
                  'page' => new external_value(PARAM_INT, 'current page', VALUE_DEFAULT, -1),
                  'perpage' => new external_value(PARAM_INT, 'items per page', VALUE_DEFAULT, 0),
                  'groupid' => new external_value(PARAM_INT, 'group id', VALUE_DEFAULT, 0),
              )
          );
      }
code_tokens: public static function get_forum_discussions_parameters ( ) { return new external_function_parameters ( array ( 'forumid' => new external_value ( PARAM_INT , 'forum instance id' , VALUE_REQUIRED ) , 'sortorder' => new external_value ( PARAM_INT , 'sort by this element: numreplies, , created or timemodified' , VALUE_DEFAULT , - 1 ) , 'page' => new external_value ( PARAM_INT , 'current page' , VALUE_DEFAULT , - 1 ) , 'perpage' => new external_value ( PARAM_INT , 'items per page' , VALUE_DEFAULT , 0 ) , 'groupid' => new external_value ( PARAM_INT , 'group id' , VALUE_DEFAULT , 0 ) , ) ) ; }
docstring: Describes the parameters for get_forum_discussions.
  
  @return external_function_parameters
  @since Moodle 3.7
docstring_tokens: Describes the parameters for get_forum_discussions .