original_string: public static function add_disabled_constraints_to_form(\MoodleQuickForm $mform) {
          $myvalue = \tool_usertours\target::get_target_constant_for_class(get_class());
  
          foreach (array_keys(self::$forcedsettings) as $settingname) {
              $mform->hideIf($settingname, 'targettype', 'eq', $myvalue);
          }
      }
code: public static function add_disabled_constraints_to_form(\MoodleQuickForm $mform) {
          $myvalue = \tool_usertours\target::get_target_constant_for_class(get_class());
  
          foreach (array_keys(self::$forcedsettings) as $settingname) {
              $mform->hideIf($settingname, 'targettype', 'eq', $myvalue);
          }
      }
code_tokens: public static function add_disabled_constraints_to_form ( \ MoodleQuickForm $ mform ) { $ myvalue = \ tool_usertours \ target :: get_target_constant_for_class ( get_class ( ) ) ; foreach ( array_keys ( self :: $ forcedsettings ) as $ settingname ) { $ mform -> hideIf ( $ settingname , 'targettype' , 'eq' , $ myvalue ) ; } }
docstring: Add the disabledIf values.
  
  @param   MoodleQuickForm $mform      The form to add configuration to.
docstring_tokens: Add the disabledIf values .