original_string: public function definition_after_data() {
          parent::definition_after_data();
          $this->_form->addRule('setting_root_filename', get_string('errorfilenamerequired', 'backup'), 'required');
          $this->_form->setType('setting_root_filename', PARAM_FILE);
      }
code: public function definition_after_data() {
          parent::definition_after_data();
          $this->_form->addRule('setting_root_filename', get_string('errorfilenamerequired', 'backup'), 'required');
          $this->_form->setType('setting_root_filename', PARAM_FILE);
      }
code_tokens: public function definition_after_data ( ) { parent :: definition_after_data ( ) ; $ this -> _form -> addRule ( 'setting_root_filename' , get_string ( 'errorfilenamerequired' , 'backup' ) , 'required' ) ; $ this -> _form -> setType ( 'setting_root_filename' , PARAM_FILE ) ; }
docstring: Adds the last elements, rules, settings etc to the form after data has been set.
  
  We override this to add a rule and type to the filename setting.
  
  @throws coding_exception
docstring_tokens: Adds the last elements rules settings etc to the form after data has been set .