Apply parser processor new methods + observe $CFG->keeptempdirectoriesonbackup

This commit is contained in:
Eloy Lafuente (stronk7) 2011-04-14 20:16:17 +02:00 committed by David Mudrak
parent be85390109
commit 5b01180aed
2 changed files with 13 additions and 3 deletions

View File

@ -24,7 +24,9 @@ class moodle1_converter_test extends UnitTestCase {
public function tearDown() {
global $CFG;
fulldelete("$CFG->dataroot/temp/backup/$this->tempdir");
if (empty($CFG->keeptempdirectoriesonbackup)) {
fulldelete("$CFG->dataroot/temp/backup/$this->tempdir");
}
}
public function test_can_convert() {
@ -38,4 +40,4 @@ class moodle1_converter_test extends UnitTestCase {
$this->assertIsA($converter, 'moodle1_converter');
$converter->convert();
}
}
}

View File

@ -69,4 +69,12 @@ class convert_structure_parser_processor extends grouped_parser_processor {
protected function dispatch_chunk($data) {
$this->converter->process($data);
}
}
protected function notify_path_start($path) {
// Do nothing
}
protected function notify_path_end($path) {
// Do nothing
}
}