public function addDocumentation($input_node, $documentation)
    {
        if ($input_node === $this) {
            $node = $this->_dom->documentElement;
        } else {
            $node = $input_node;
        }

        $doc = $this->_dom->createElement('documentation');
        $doc_cdata = $this->_dom->createTextNode($documentation);
        $doc->appendChild($doc_cdata);

        if ($node->hasChildNodes()) {
            $node->insertBefore($doc, $node->firstChild);
        } else {
            $node->appendChild($doc);
        }

        return $doc;
    }
public function addDocumentation($input_node, $documentation)
    {
        if ($input_node === $this) {
            $node = $this->_dom->documentElement;
        } else {
            $node = $input_node;
        }

        $doc = $this->_dom->createElement('documentation');
        $doc_cdata = $this->_dom->createTextNode($documentation);
        $doc->appendChild($doc_cdata);

        if ($node->hasChildNodes()) {
            $node->insertBefore($doc, $node->firstChild);
        } else {
            $node->appendChild($doc);
        }

        return $doc;
    }
public function addDocumentation ( $ input_node , $ documentation ) { if ( $ input_node === $ this ) { $ node = $ this -> _dom -> documentElement ; } else { $ node = $ input_node ; } $ doc = $ this -> _dom -> createElement ( 'documentation' ) ; $ doc_cdata = $ this -> _dom -> createTextNode ( $ documentation ) ; $ doc -> appendChild ( $ doc_cdata ) ; if ( $ node -> hasChildNodes ( ) ) { $ node -> insertBefore ( $ doc , $ node -> firstChild ) ; } else { $ node -> appendChild ( $ doc ) ; } return $ doc ; }
Add a documentation element to any element in the WSDL.

Note that the WSDL {@link http://www.w3.org/TR/wsdl#_documentation specification} uses 'document',
but the WSDL {@link http://schemas.xmlsoap.org/wsdl/ schema} uses 'documentation' instead.
The {@link http://www.ws-i.org/Profiles/BasicProfile-1.1-2004-08-24.html#WSDL_documentation_Element WS-I Basic Profile 1.1} recommends using 'documentation'.

@param object $input_node An XML_Tree_Node returned by another method to add the documentation to
@param string $documentation Human readable documentation for the node
@return DOMElement The documentation element
Add a documentation element to any element in the WSDL .