protected function fill_instance_data(\cm_info $cm) {
        global $DB;

        if (!isset($this->instancedata[$cm->instance])) {
            $this->instancedata[$cm->instance] = $DB->get_record($this->get_activity_type(), array('id' => $cm->instance),
                '*', MUST_EXIST);
        }
    }