public static function get_lesson_access_information_returns() {
        return new external_single_structure(
            array(
                'canmanage' => new external_value(PARAM_BOOL, 'Whether the user can manage the lesson or not.'),
                'cangrade' => new external_value(PARAM_BOOL, 'Whether the user can grade the lesson or not.'),
                'canviewreports' => new external_value(PARAM_BOOL, 'Whether the user can view the lesson reports or not.'),
                'reviewmode' => new external_value(PARAM_BOOL, 'Whether the lesson is in review mode for the current user.'),
                'attemptscount' => new external_value(PARAM_INT, 'The number of attempts done by the user.'),
                'lastpageseen' => new external_value(PARAM_INT, 'The last page seen id.'),
                'leftduringtimedsession' => new external_value(PARAM_BOOL, 'Whether the user left during a timed session.'),
                'firstpageid' => new external_value(PARAM_INT, 'The lesson first page id.'),
                'preventaccessreasons' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'reason' => new external_value(PARAM_ALPHANUMEXT, 'Reason lang string code'),
                            'data' => new external_value(PARAM_RAW, 'Additional data'),
                            'message' => new external_value(PARAM_RAW, 'Complete html message'),
                        ),
                        'The reasons why the user cannot attempt the lesson'
                    )
                ),
                'warnings' => new external_warnings(),
            )
        );
    }
public static function get_lesson_access_information_returns() {
        return new external_single_structure(
            array(
                'canmanage' => new external_value(PARAM_BOOL, 'Whether the user can manage the lesson or not.'),
                'cangrade' => new external_value(PARAM_BOOL, 'Whether the user can grade the lesson or not.'),
                'canviewreports' => new external_value(PARAM_BOOL, 'Whether the user can view the lesson reports or not.'),
                'reviewmode' => new external_value(PARAM_BOOL, 'Whether the lesson is in review mode for the current user.'),
                'attemptscount' => new external_value(PARAM_INT, 'The number of attempts done by the user.'),
                'lastpageseen' => new external_value(PARAM_INT, 'The last page seen id.'),
                'leftduringtimedsession' => new external_value(PARAM_BOOL, 'Whether the user left during a timed session.'),
                'firstpageid' => new external_value(PARAM_INT, 'The lesson first page id.'),
                'preventaccessreasons' => new external_multiple_structure(
                    new external_single_structure(
                        array(
                            'reason' => new external_value(PARAM_ALPHANUMEXT, 'Reason lang string code'),
                            'data' => new external_value(PARAM_RAW, 'Additional data'),
                            'message' => new external_value(PARAM_RAW, 'Complete html message'),
                        ),
                        'The reasons why the user cannot attempt the lesson'
                    )
                ),
                'warnings' => new external_warnings(),
            )
        );
    }
public static function get_lesson_access_information_returns ( ) { return new external_single_structure ( array ( 'canmanage' => new external_value ( PARAM_BOOL , 'Whether the user can manage the lesson or not.' ) , 'cangrade' => new external_value ( PARAM_BOOL , 'Whether the user can grade the lesson or not.' ) , 'canviewreports' => new external_value ( PARAM_BOOL , 'Whether the user can view the lesson reports or not.' ) , 'reviewmode' => new external_value ( PARAM_BOOL , 'Whether the lesson is in review mode for the current user.' ) , 'attemptscount' => new external_value ( PARAM_INT , 'The number of attempts done by the user.' ) , 'lastpageseen' => new external_value ( PARAM_INT , 'The last page seen id.' ) , 'leftduringtimedsession' => new external_value ( PARAM_BOOL , 'Whether the user left during a timed session.' ) , 'firstpageid' => new external_value ( PARAM_INT , 'The lesson first page id.' ) , 'preventaccessreasons' => new external_multiple_structure ( new external_single_structure ( array ( 'reason' => new external_value ( PARAM_ALPHANUMEXT , 'Reason lang string code' ) , 'data' => new external_value ( PARAM_RAW , 'Additional data' ) , 'message' => new external_value ( PARAM_RAW , 'Complete html message' ) , ) , 'The reasons why the user cannot attempt the lesson' ) ) , 'warnings' => new external_warnings ( ) , ) ) ; }
Describes the get_lesson_access_information return value.

@return external_single_structure
@since Moodle 3.3
Describes the get_lesson_access_information return value .