Exemplo n.º 1
0
 /**
  * Callback function. Calls importer's begin_table_import callback method.
  *
  * @param xmldb_table $table - XMLDB object for the exported table
  * @return void
  */
 public function begin_table_export(xmldb_table $table)
 {
     $this->feedback->output(get_string('copyingtable', 'core_dbtransfer', $table->getName()), 1);
     $this->importer->begin_table_import($table->getName(), $table->getHash());
 }
Exemplo n.º 2
0
 /**
  * Callback function. Outputs table opening tag.
  *
  * @param xmldb_table $table - XMLDB object for the exported table
  * @return void
  */
 public function begin_table_export(xmldb_table $table)
 {
     $this->output('<table name="' . $table->getName() . '" schemaHash="' . $table->getHash() . '">');
 }