Horde_Kolab_Format_Xml_Helper::createNodeValue PHP Method

createNodeValue() public method

Store a value as a new text node.
public createNodeValue ( DOMNode $parent_node, string $name, string $value ) : DOMNode
$parent_node DOMNode Attach the new node to this parent.
$name string Name of the new child node.
$value string Text value of the new child node.
return DOMNode The new child node.
    public function createNodeValue($parent_node, $name, $value)
    {
        $node = $this->_xmldoc->createTextNode($value);
        $parent_node->appendChild($node);
        return $node;
    }