protected function get_legacy_logdata() {
return array(SITEID, 'category', 'delete', 'index.php', $this->other['name'] . '(ID ' . $this->objectid . ')');
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['name'])) {
+ throw new \coding_exception('The \'name\' value must be set in other.');
+ }
+ }
}
return $course;
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['options'])) {
+ throw new \coding_exception('The \'options\' value must be set in other.');
+ }
+ }
}
protected function get_legacy_logdata() {
return array(SITEID, 'course', 'new', 'view.php?id=' . $this->objectid, $this->other['fullname'] . ' (ID ' . $this->objectid . ')');
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['fullname'])) {
+ throw new \coding_exception('The \'fullname\' value must be set in other.');
+ }
+ }
}
protected function get_legacy_logdata() {
return array(SITEID, 'course', 'delete', 'view.php?id=' . $this->objectid, $this->other['fullname'] . '(ID ' . $this->objectid . ')');
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['fullname'])) {
+ throw new \coding_exception('The \'fullname\' value must be set in other.');
+ }
+ }
}
'samesite' => $this->other['samesite'],
);
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['type'])) {
+ throw new \coding_exception('The \'type\' value must be set in other.');
+ }
+
+ if (!isset($this->other['target'])) {
+ throw new \coding_exception('The \'target\' value must be set in other.');
+ }
+
+ if (!isset($this->other['mode'])) {
+ throw new \coding_exception('The \'mode\' value must be set in other.');
+ }
+
+ if (!isset($this->other['operation'])) {
+ throw new \coding_exception('The \'operation\' value must be set in other.');
+ }
+
+ if (!isset($this->other['samesite'])) {
+ throw new \coding_exception('The \'samesite\' value must be set in other.');
+ }
+ }
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['id'])) {
+ throw new \coding_exception('The \'id\' value must be set in other.');
+ }
+
+ if (!isset($this->other['component'])) {
+ throw new \coding_exception('The \'component\' value must be set in other.');
+ }
}
}
return array(SITEID, 'role', 'delete', 'admin/roles/manage.php?action=delete&roleid=' . $this->objectid,
$this->other['shortname'], '');
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['shortname'])) {
+ throw new \coding_exception('The \'shortname\' value must be set in other.');
+ }
+ }
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['id'])) {
+ throw new \coding_exception('The \'id\' value must be set in other.');
+ }
+
+ if (!isset($this->other['component'])) {
+ throw new \coding_exception('The \'component\' value must be set in other.');
+ }
}
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['itemid'])) {
+ throw new \coding_exception('The \'itemid\' value must be set in other.');
+ }
}
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['originalusername'])) {
+ throw new \coding_exception('The \'originalusername\' value must be set in other.');
+ }
+
+ if (!isset($this->other['loggedinasusername'])) {
+ throw new \coding_exception('The \'loggedinasusername\' value must be set in other.');
+ }
}
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['auto'])) {
+ throw new \coding_exception('The \'auto\' value must be set in other.');
+ }
}
}
protected function validate_data() {
parent::validate_data();
+ if (empty($this->other['scormid'])) {
+ throw new \coding_exception('The \'scormid\' value must be set in other.');
+ }
+
if (empty($this->other['mode'])) {
throw new \coding_exception('The \'mode\' value must be set in other.');
}
public function get_url() {
return new \moodle_url('/mod/workshop/view.php', array('id' => $this->contextinstanceid));
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['workshopid'])) {
+ throw new \coding_exception('The \'workshopid\' value must be set in other.');
+ }
+ }
}
public function get_url() {
return new \moodle_url('/mod/workshop/view.php', array('id' => $this->contextinstanceid));
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['workshopid'])) {
+ throw new \coding_exception('The \'workshopid\' value must be set in other.');
+ }
+ }
}
public function get_url() {
return new \moodle_url('/mod/workshop/view.php', array('id' => $this->contextinstanceid));
}
+
+ /**
+ * Custom validation.
+ *
+ * @throws \coding_exception
+ * @return void
+ */
+ protected function validate_data() {
+ parent::validate_data();
+
+ if (!isset($this->other['workshopphase'])) {
+ throw new \coding_exception('The \'workshopphase\' value must be set in other.');
+ }
+ }
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['submissionid'])) {
+ throw new \coding_exception('The \'submissionid\' value must be set in other.');
+ }
}
}
if (!isset($this->relateduserid)) {
throw new \coding_exception('The \'relateduserid\' must be set.');
}
+
+ if (!isset($this->other['submissionid'])) {
+ throw new \coding_exception('The \'submissionid\' value must be set in other.');
+ }
}
}