original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Trigger the attempt reviewed event.
  
  @param int $attemptid attempt id
  @return array of warnings and status result
  @since Moodle 3.1
docstring_tokens: Trigger the attempt reviewed event .