public function insertSignature($node, $beforeNode = null)
    {
        $document = $node->ownerDocument;
        $signatureElement = $document->importNode($this->sigNode, true);

        if ($beforeNode == null) {
            $node->insertBefore($signatureElement);
        } else {
            $node->insertBefore($signatureElement, $beforeNode);
        }
    }
public function insertSignature($node, $beforeNode = null)
    {
        $document = $node->ownerDocument;
        $signatureElement = $document->importNode($this->sigNode, true);

        if ($beforeNode == null) {
            $node->insertBefore($signatureElement);
        } else {
            $node->insertBefore($signatureElement, $beforeNode);
        }
    }
public function insertSignature ( $ node , $ beforeNode = null ) { $ document = $ node -> ownerDocument ; $ signatureElement = $ document -> importNode ( $ this -> sigNode , true ) ; if ( $ beforeNode == null ) { $ node -> insertBefore ( $ signatureElement ) ; } else { $ node -> insertBefore ( $ signatureElement , $ beforeNode ) ; } }
This function inserts the signature element.

The signature element will be appended to the element, unless $beforeNode is specified. If $beforeNode
is specified, the signature element will be inserted as the last element before $beforeNode.

@param $node  The node the signature element should be inserted into.
@param $beforeNode  The node the signature element should be located before.
This function inserts the signature element .