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);
        }
    }
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);
        }
    }
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 ) ; } }
Define the form - called by parent constructor.
Define the form - called by parent constructor .