PHP Class WSDL\XML\XMLAttributeHelper

Author: Piotr Olaszewski ([email protected])
Mostra file Open project: piotrooo/wsdl-creator Class Usage Examples

Public Methods

Method Description
__construct ( DOMDocument $DOMDocument )
createAttributeWithValue ( string $attributeName, string $value ) : DOMAttr
createElement ( string $elementName, string $value = '' ) : DOMElement
createElementWithAttributes ( string $elementName, array $attributes, string $value = '' ) : DOMElement
forDOM ( DOMDocument $DOMDocument ) : XMLAttributeHelper

Method Details

__construct() public method

public __construct ( DOMDocument $DOMDocument )
$DOMDocument DOMDocument

createAttributeWithValue() public method

public createAttributeWithValue ( string $attributeName, string $value ) : DOMAttr
$attributeName string
$value string
return DOMAttr

createElement() public method

public createElement ( string $elementName, string $value = '' ) : DOMElement
$elementName string
$value string
return DOMElement

createElementWithAttributes() public method

public createElementWithAttributes ( string $elementName, array $attributes, string $value = '' ) : DOMElement
$elementName string
$attributes array
$value string
return DOMElement

forDOM() public static method

public static forDOM ( DOMDocument $DOMDocument ) : XMLAttributeHelper
$DOMDocument DOMDocument
return XMLAttributeHelper