original_string: public function definition() {
          $mform = $this->_form;
  
          list($assignment, $data, $params) = $this->_customdata;
          // Visible elements.
          $this->assignment = $assignment;
          $assignment->add_grade_form_elements($mform, $data, $params);
  
          if ($data) {
              $this->set_data($data);
          }
      }
code: public function definition() {
          $mform = $this->_form;
  
          list($assignment, $data, $params) = $this->_customdata;
          // Visible elements.
          $this->assignment = $assignment;
          $assignment->add_grade_form_elements($mform, $data, $params);
  
          if ($data) {
              $this->set_data($data);
          }
      }
code_tokens: public function definition ( ) { $ mform = $ this -> _form ; list ( $ assignment , $ data , $ params ) = $ this -> _customdata ; // Visible elements. $ this -> assignment = $ assignment ; $ assignment -> add_grade_form_elements ( $ mform , $ data , $ params ) ; if ( $ data ) { $ this -> set_data ( $ data ) ; } }
docstring: Define the form - called by parent constructor.
docstring_tokens: Define the form - called by parent constructor .