Horde_Kolab_Format_Xml_Type_Composite::_writeComposite PHP Method

_writeComposite() private method

Write a composite value to a parent node.
private _writeComposite ( DOMNode $parent_node, string $name, array $values, Horde_Kolab_Format_Xml_Helper $helper, array $params ) : array
$parent_node DOMNode The parent node of the node that should be updated.
$name string The name of the the attribute to be updated.
$values array The values to write.
$helper Horde_Kolab_Format_Xml_Helper A XML helper instance.
$params array The parameters for this write operation.
return array The list of new/updated child nodes.
    private function _writeComposite($parent_node, $name, $values, Horde_Kolab_Format_Xml_Helper $helper, $params)
    {
        foreach ($this->elements as $sub_name => $sub_type) {
            $this->createSubType($sub_type, $params)->save($sub_name, $values, $parent_node, $helper, $params);
        }
    }