original_string: public function get_initial_form_data() {
          $toform = new stdClass();
          $toform->attempts   = $this->attempts;
          $toform->onlygraded = $this->onlygraded;
          $toform->pagesize   = $this->pagesize;
  
          if ($this->states) {
              foreach (self::$statefields as $field => $state) {
                  $toform->$field = in_array($state, $this->states);
              }
          }
  
          return $toform;
      }
code: public function get_initial_form_data() {
          $toform = new stdClass();
          $toform->attempts   = $this->attempts;
          $toform->onlygraded = $this->onlygraded;
          $toform->pagesize   = $this->pagesize;
  
          if ($this->states) {
              foreach (self::$statefields as $field => $state) {
                  $toform->$field = in_array($state, $this->states);
              }
          }
  
          return $toform;
      }
code_tokens: public function get_initial_form_data ( ) { $ toform = new stdClass ( ) ; $ toform -> attempts = $ this -> attempts ; $ toform -> onlygraded = $ this -> onlygraded ; $ toform -> pagesize = $ this -> pagesize ; if ( $ this -> states ) { foreach ( self :: $ statefields as $ field => $ state ) { $ toform -> $ field = in_array ( $ state , $ this -> states ) ; } } return $ toform ; }
docstring: Get the current value of the settings to pass to the settings form.
docstring_tokens: Get the current value of the settings to pass to the settings form .