public static function get_quiz_access_information_returns() {
        return new external_single_structure(
            array(
                'canattempt' => new external_value(PARAM_BOOL, 'Whether the user can do the quiz or not.'),
                'canmanage' => new external_value(PARAM_BOOL, 'Whether the user can edit the quiz settings or not.'),
                'canpreview' => new external_value(PARAM_BOOL, 'Whether the user can preview the quiz or not.'),
                'canreviewmyattempts' => new external_value(PARAM_BOOL, 'Whether the users can review their previous attempts
                                                                or not.'),
                'canviewreports' => new external_value(PARAM_BOOL, 'Whether the user can view the quiz reports or not.'),
                'accessrules' => new external_multiple_structure(
                                    new external_value(PARAM_TEXT, 'rule description'), 'list of rules'),
                'activerulenames' => new external_multiple_structure(
                                    new external_value(PARAM_PLUGIN, 'rule plugin names'), 'list of active rules'),
                'preventaccessreasons' => new external_multiple_structure(
                                            new external_value(PARAM_TEXT, 'access restriction description'), 'list of reasons'),
                'warnings' => new external_warnings(),
            )
        );
    }
public static function get_quiz_access_information_returns() {
        return new external_single_structure(
            array(
                'canattempt' => new external_value(PARAM_BOOL, 'Whether the user can do the quiz or not.'),
                'canmanage' => new external_value(PARAM_BOOL, 'Whether the user can edit the quiz settings or not.'),
                'canpreview' => new external_value(PARAM_BOOL, 'Whether the user can preview the quiz or not.'),
                'canreviewmyattempts' => new external_value(PARAM_BOOL, 'Whether the users can review their previous attempts
                                                                or not.'),
                'canviewreports' => new external_value(PARAM_BOOL, 'Whether the user can view the quiz reports or not.'),
                'accessrules' => new external_multiple_structure(
                                    new external_value(PARAM_TEXT, 'rule description'), 'list of rules'),
                'activerulenames' => new external_multiple_structure(
                                    new external_value(PARAM_PLUGIN, 'rule plugin names'), 'list of active rules'),
                'preventaccessreasons' => new external_multiple_structure(
                                            new external_value(PARAM_TEXT, 'access restriction description'), 'list of reasons'),
                'warnings' => new external_warnings(),
            )
        );
    }
public static function get_quiz_access_information_returns ( ) { return new external_single_structure ( array ( 'canattempt' => new external_value ( PARAM_BOOL , 'Whether the user can do the quiz or not.' ) , 'canmanage' => new external_value ( PARAM_BOOL , 'Whether the user can edit the quiz settings or not.' ) , 'canpreview' => new external_value ( PARAM_BOOL , 'Whether the user can preview the quiz or not.' ) , 'canreviewmyattempts' => new external_value ( PARAM_BOOL , 'Whether the users can review their previous attempts
                                                                or not.' ) , 'canviewreports' => new external_value ( PARAM_BOOL , 'Whether the user can view the quiz reports or not.' ) , 'accessrules' => new external_multiple_structure ( new external_value ( PARAM_TEXT , 'rule description' ) , 'list of rules' ) , 'activerulenames' => new external_multiple_structure ( new external_value ( PARAM_PLUGIN , 'rule plugin names' ) , 'list of active rules' ) , 'preventaccessreasons' => new external_multiple_structure ( new external_value ( PARAM_TEXT , 'access restriction description' ) , 'list of reasons' ) , 'warnings' => new external_warnings ( ) , ) ) ; }
Describes the get_quiz_access_information return value.

@return external_single_structure
@since Moodle 3.1
Describes the get_quiz_access_information return value .