public function __construct($restoreid) { $this->restoreid = $restoreid; parent::__construct(array()); // Get itemnames handled by inforef files $items = backup_helper::get_inforef_itemnames(); // Let's add all them as target paths for the processor foreach ($items as $itemname) { $pathvalue = '/inforef/' . $itemname . 'ref/' . $itemname; $this->add_path($pathvalue); } }
protected function define_execution() { // Items we want to include in the inforef file $items = backup_helper::get_inforef_itemnames(); foreach ($items as $itemname) { // Delegate to dbops backup_structure_dbops::move_annotations_to_final($this->get_backupid(), $itemname); } }
protected function define_execution() { // Items we want to include in the inforef file $items = backup_helper::get_inforef_itemnames(); $progress = $this->task->get_progress(); $progress->start_progress($this->get_name(), count($items)); $done = 1; foreach ($items as $itemname) { // Delegate to dbops backup_structure_dbops::move_annotations_to_final($this->get_backupid(), $itemname, $progress); $progress->progress($done++); } $progress->end_progress(); }