/**
  * Custom validation.
  *
  * @throws \coding_exception
  * @return void
  */
 protected function validate_data()
 {
     parent::validate_data();
     if (!isset($this->other['onlinetextwordcount'])) {
         throw new \coding_exception('The \'onlinetextwordcount\' value must be set in other.');
     }
 }
 /**
  * Custom validation.
  *
  * @throws \coding_exception
  * @return void
  */
 protected function validate_data()
 {
     parent::validate_data();
     if (!isset($this->other['filesubmissioncount'])) {
         throw new \coding_exception('The \'filesubmissioncount\' value must be set in other.');
     }
 }