original_string: protected function after_restore() {
          global $DB;
  
          $contextid = $this->task->get_contextid();
          $instanceid = $this->task->get_activityid();
          $olditemid = $this->task->get_old_activityid();
  
          $DB->set_field('tag_instance', 'itemid', $instanceid, array('contextid' => $contextid, 'itemid' => $olditemid));
      }
code: protected function after_restore() {
          global $DB;
  
          $contextid = $this->task->get_contextid();
          $instanceid = $this->task->get_activityid();
          $olditemid = $this->task->get_old_activityid();
  
          $DB->set_field('tag_instance', 'itemid', $instanceid, array('contextid' => $contextid, 'itemid' => $olditemid));
      }
code_tokens: protected function after_restore ( ) { global $ DB ; $ contextid = $ this -> task -> get_contextid ( ) ; $ instanceid = $ this -> task -> get_activityid ( ) ; $ olditemid = $ this -> task -> get_old_activityid ( ) ; $ DB -> set_field ( 'tag_instance' , 'itemid' , $ instanceid , array ( 'contextid' => $ contextid , 'itemid' => $ olditemid ) ) ; }
docstring: This method will be executed after the rest of the restore has been processed.
  
  Update old tag instance itemid(s).
docstring_tokens: This method will be executed after the rest of the restore has been processed .