original_string: protected function tag_close($parser, $tag) {
          switch ($tag) {
              case 'moodle_database' :
                  $this->finish_database_import();
                  break;
  
              case 'table' :
                  $this->finish_table_import($this->current_table);
                  $this->current_table = null;
                  break;
  
              case 'record' :
                  $this->import_table_data($this->current_table, $this->current_row);
                  $this->current_row = null;
                  break;
  
              case 'field' :
                  $field = $this->current_field;
                  if ($this->current_data_is_null) {
                      $this->current_row->$field = null;
                  } else {
                      $this->current_row->$field = $this->current_data;
                  }
                  $this->current_field        = null;
                  $this->current_data         = null;
                  $this->current_data_is_null = null;
                  break;
  
              default :
                  throw new dbtransfer_exception('malformedxmlexception');
          }
      }
code: protected function tag_close($parser, $tag) {
          switch ($tag) {
              case 'moodle_database' :
                  $this->finish_database_import();
                  break;
  
              case 'table' :
                  $this->finish_table_import($this->current_table);
                  $this->current_table = null;
                  break;
  
              case 'record' :
                  $this->import_table_data($this->current_table, $this->current_row);
                  $this->current_row = null;
                  break;
  
              case 'field' :
                  $field = $this->current_field;
                  if ($this->current_data_is_null) {
                      $this->current_row->$field = null;
                  } else {
                      $this->current_row->$field = $this->current_data;
                  }
                  $this->current_field        = null;
                  $this->current_data         = null;
                  $this->current_data_is_null = null;
                  break;
  
              default :
                  throw new dbtransfer_exception('malformedxmlexception');
          }
      }
code_tokens: protected function tag_close ( $ parser , $ tag ) { switch ( $ tag ) { case 'moodle_database' : $ this -> finish_database_import ( ) ; break ; case 'table' : $ this -> finish_table_import ( $ this -> current_table ) ; $ this -> current_table = null ; break ; case 'record' : $ this -> import_table_data ( $ this -> current_table , $ this -> current_row ) ; $ this -> current_row = null ; break ; case 'field' : $ field = $ this -> current_field ; if ( $ this -> current_data_is_null ) { $ this -> current_row -> $ field = null ; } else { $ this -> current_row -> $ field = $ this -> current_data ; } $ this -> current_field = null ; $ this -> current_data = null ; $ this -> current_data_is_null = null ; break ; default : throw new dbtransfer_exception ( 'malformedxmlexception' ) ; } }
docstring: Callback function. Called by the XML parser for closing tags processing.
  
  @param resource $parser XML parser resource.
  @param string $tag name of opening tag
  @return void
docstring_tokens: Callback function . Called by the XML parser for closing tags processing .