/** * Set the parent of the optigroup_element and, at the same time, * process the condition param */ protected function set_parent($element) { parent::set_parent($element); // Force condition param calculation $this->set_condition($this->conditionparam, $this->conditionvalue); }