MDL-20636 qtype_numerical oops, I deleted a function from the wrong place. Fix.

This commit is contained in:
Tim Hunt 2011-04-28 20:22:45 +01:00
parent 5073fb743f
commit d1de533164
3 changed files with 9 additions and 11 deletions

View File

@ -340,4 +340,13 @@ abstract class restore_qtype_plugin extends restore_plugin {
return $contents;
}
/**
* Returns one array with filearea => mappingname elements for the qtype
*
* Used by {@link get_components_and_fileareas} to know about all the qtype- * files to be processed both in backup and restore.
*/
public static function get_qtype_fileareas() {
// By default, return empty array, only qtypes having own fileareas wil- return array();
}
}

View File

@ -75,14 +75,4 @@ class backup_qtype_numerical_plugin extends backup_qtype_plugin {
return $plugin;
}
/**
* Returns one array with filearea => mappingname elements for the qtype
*
* Used by {@link get_components_and_fileareas} to know about all the qtype
* files to be processed both in backup and restore.
*/
public static function get_qtype_fileareas() {
return array();
}
}

View File

@ -54,7 +54,6 @@ class restore_qtype_numerical_plugin extends restore_qtype_plugin {
$elepath = $this->get_pathfor('/numerical_records/numerical_record');
$paths[] = new restore_path_element($elename, $elepath);
return $paths; // And we return the interesting paths
}