protected function set_parent($element) {
        parent::set_parent($element);
        // Force condition param calculation in all children
        foreach ($this->get_children() as $child) {
            $child->set_condition($child->get_condition_param(), $child->get_condition_value());
        }
    }
protected function set_parent($element) {
        parent::set_parent($element);
        // Force condition param calculation in all children
        foreach ($this->get_children() as $child) {
            $child->set_condition($child->get_condition_param(), $child->get_condition_value());
        }
    }
protected function set_parent ( $ element ) { parent :: set_parent ( $ element ) ; // Force condition param calculation in all children foreach ( $ this -> get_children ( ) as $ child ) { $ child -> set_condition ( $ child -> get_condition_param ( ) , $ child -> get_condition_value ( ) ) ; } }
Set the parent of the optigroup and, at the same time, process all the
condition params in all the childs
Set the parent of the optigroup and at the same time process all the condition params in all the childs