function definition() { $extraonly = optional_param('extraonly', 0, PARAM_INT); // full settings or only the extra ones. if (!$extraonly) { parent::definition(); } $this->definition2($extraonly); }