original_string: public function add_dependencies(backup_setting $setting) {
          $mform = $this->_form;
          // Apply all dependencies for backup.
          foreach ($setting->get_my_dependency_properties() as $key => $dependency) {
              call_user_func_array(array($this->_form, 'disabledIf'), $dependency);
          }
      }
code: public function add_dependencies(backup_setting $setting) {
          $mform = $this->_form;
          // Apply all dependencies for backup.
          foreach ($setting->get_my_dependency_properties() as $key => $dependency) {
              call_user_func_array(array($this->_form, 'disabledIf'), $dependency);
          }
      }
code_tokens: public function add_dependencies ( backup_setting $ setting ) { $ mform = $ this -> _form ; // Apply all dependencies for backup. foreach ( $ setting -> get_my_dependency_properties ( ) as $ key => $ dependency ) { call_user_func_array ( array ( $ this -> _form , 'disabledIf' ) , $ dependency ) ; } }
docstring: Adds dependencies to the form recursively
  
  @param backup_setting $setting
docstring_tokens: Adds dependencies to the form recursively