MDL-41754 (1) Progress tracking : moved from backup and restore to core

This commit is contained in:
James Pratt
2014-01-27 17:45:50 +07:00
parent 8e32861786
commit 809fdb83b1
28 changed files with 153 additions and 144 deletions
@@ -38,7 +38,7 @@ class backup_structure_processor extends base_processor {
protected $vars; // array of backup::VAR_XXX => helper value pairs to be used by source specifications
/**
* @var core_backup_progress Progress tracker (null if none)
* @var \core\progress\base Progress tracker (null if none)
*/
protected $progress;
@@ -46,9 +46,9 @@ class backup_structure_processor extends base_processor {
* Constructor.
*
* @param xml_writer $writer XML writer to save data
* @param core_backup_progress $progress Progress tracker (optional)
* @param c\core\progress\base$progress Progress tracker (optional)
*/
public function __construct(xml_writer $writer, core_backup_progress $progress = null) {
public function __construct(xml_writer $writer, \core\progress\base $progress = null) {
$this->writer = $writer;
$this->progress = $progress;
$this->vars = array();