public static function view_attempt_review($attemptid) {

        $warnings = array();

        $params = array(
            'attemptid' => $attemptid,
        );
        $params = self::validate_parameters(self::view_attempt_review_parameters(), $params);
        list($attemptobj, $displayoptions) = self::validate_attempt_review($params);

        // Log action.
        $attemptobj->fire_attempt_reviewed_event();

        $result = array();
        $result['status'] = true;
        $result['warnings'] = $warnings;
        return $result;
    }
public static function view_attempt_review($attemptid) {

        $warnings = array();

        $params = array(
            'attemptid' => $attemptid,
        );
        $params = self::validate_parameters(self::view_attempt_review_parameters(), $params);
        list($attemptobj, $displayoptions) = self::validate_attempt_review($params);

        // Log action.
        $attemptobj->fire_attempt_reviewed_event();

        $result = array();
        $result['status'] = true;
        $result['warnings'] = $warnings;
        return $result;
    }
public static function view_attempt_review ( $ attemptid ) { $ warnings = array ( ) ; $ params = array ( 'attemptid' => $ attemptid , ) ; $ params = self :: validate_parameters ( self :: view_attempt_review_parameters ( ) , $ params ) ; list ( $ attemptobj , $ displayoptions ) = self :: validate_attempt_review ( $ params ) ; // Log action. $ attemptobj -> fire_attempt_reviewed_event ( ) ; $ result = array ( ) ; $ result [ 'status' ] = true ; $ result [ 'warnings' ] = $ warnings ; return $ result ; }
Trigger the attempt reviewed event.

@param int $attemptid attempt id
@return array of warnings and status result
@since Moodle 3.1
Trigger the attempt reviewed event .