WSDL\XML\XMLAttributeHelper::forDOM PHP Method

forDOM() public static method

public static forDOM ( DOMDocument $DOMDocument ) : XMLAttributeHelper
$DOMDocument DOMDocument
return XMLAttributeHelper
    public static function forDOM(DOMDocument $DOMDocument)
    {
        return new self($DOMDocument);
    }

Usage Example

コード例 #1
0
 /**
  * @inheritdoc
  */
 public function generateSoapHeaderIfNeeded(DOMDocument $DOMDocument, $targetNamespace, $soapHeaderMessage = '', Parameter $header = null, $soapVersion)
 {
     if ($header) {
         return XMLAttributeHelper::forDOM($DOMDocument)->createElementWithAttributes($soapVersion . ':header', array('use' => 'encoded', 'namespace' => $targetNamespace, 'encodingStyle' => 'http://schemas.xmlsoap.org/soap/encoding/', 'part' => $header->getNode()->getSanitizedName(), 'message' => $soapHeaderMessage));
     }
     return null;
 }
All Usage Examples Of WSDL\XML\XMLAttributeHelper::forDOM