메소드 | 설명 | |
---|---|---|
ConvertObjectToXml ( mixed $object, string $rootElementName, boolean $useXsiType ) : string | Converts an object to an XML string. The root element name is passed in as a parameter, and each field of the object becomes a child element. Array values are represented by multiples instances of that element. Methods on the object are ignored. |
메소드 | 설명 | |
---|---|---|
ConvertObjectToElement ( mixed $object, string $elementName, DOMDocument $document, boolean $useXsiType ) : DOMElement | Converts an object to a DOMElement. | |
ConvertObjectToNodeValue ( mixed $object ) | Converts a PHP value to a string for use in an XML node value. | |
CreateChildListForObjects ( object $object, DOMDocument $document, boolean $useXsiType ) : array | Creates an array of child elements for objects. | |
CreateChildListForOrderedArrays ( array $orderedArray, DOMDocument $document, boolean $useXsiType ) : array | Creates an array of child elements for ordered arrays. |
public ConvertObjectToXml ( mixed $object, string $rootElementName, boolean $useXsiType ) : string | ||
$object | mixed | the object to serialize |
$rootElementName | string | the name of the root element |
$useXsiType | boolean | whether the xsi:type will be added into XML tags when available |
리턴 | string | the XML serialized string of the object |