public function __construct($plugintype, $pluginname, $step)
 {
     parent::__construct($plugintype, $pluginname, $step);
     $this->qtypeobj = question_bank::get_qtype($this->pluginname);
     $this->oldquestionid = -1;
     $this->newquestionid = -1;
     $this->questioncreated = false;
     $this->currentanswer = null;
 }
 public function __construct($plugintype, $pluginname, $step)
 {
     parent::__construct($plugintype, $pluginname, $step);
     $this->legacynamemap = array('custom_template' => 'pertesttemplate');
     $revmap = qtype_coderunner::legacy_field_name_map();
     foreach ($revmap as $new => $old) {
         $this->legacynamemap[$old] = $new;
         // Invert the mapping
     }
 }