original_string: protected static function restore_event_from_standard_record($data) {
          $extra = ['origin' => $data->origin, 'ip' => $data->ip, 'realuserid' => $data->realuserid];
          $data = (array) $data;
          $id = $data['id'];
          $data['other'] = self::decode_other($data['other']);
          if ($data['other'] === false) {
              $data['other'] = [];
          }
          unset($data['origin']);
          unset($data['ip']);
          unset($data['realuserid']);
          unset($data['id']);
  
          if (!$event = \core\event\base::restore($data, $extra)) {
              return null;
          }
  
          return $event;
      }
code: protected static function restore_event_from_standard_record($data) {
          $extra = ['origin' => $data->origin, 'ip' => $data->ip, 'realuserid' => $data->realuserid];
          $data = (array) $data;
          $id = $data['id'];
          $data['other'] = self::decode_other($data['other']);
          if ($data['other'] === false) {
              $data['other'] = [];
          }
          unset($data['origin']);
          unset($data['ip']);
          unset($data['realuserid']);
          unset($data['id']);
  
          if (!$event = \core\event\base::restore($data, $extra)) {
              return null;
          }
  
          return $event;
      }
code_tokens: protected static function restore_event_from_standard_record ( $ data ) { $ extra = [ 'origin' => $ data -> origin , 'ip' => $ data -> ip , 'realuserid' => $ data -> realuserid ] ; $ data = ( array ) $ data ; $ id = $ data [ 'id' ] ; $ data [ 'other' ] = self :: decode_other ( $ data [ 'other' ] ) ; if ( $ data [ 'other' ] === false ) { $ data [ 'other' ] = [ ] ; } unset ( $ data [ 'origin' ] ) ; unset ( $ data [ 'ip' ] ) ; unset ( $ data [ 'realuserid' ] ) ; unset ( $ data [ 'id' ] ) ; if ( ! $ event = \ core \ event \ base :: restore ( $ data , $ extra ) ) { return null ; } return $ event ; }
docstring: Returns an event from a standard record.
  
  @see \logstore_standard\log\store::get_log_event()
  @param object $data Log data.
  @return \core\event\base
docstring_tokens: Returns an event from a standard record .