Utility/Serialization/XmlObjectSerializer.php
- Package
- Default
Package: DefaultXml Serialize(r) to serialize and de serialize.
- Parent(s)
- \IEntitySerializer
- Inherited_from
- \IEntitySerializer
Properties



String $resourceURL = nullKeeps last used object name
Default valuenullDetails- Type
- String
Methods



Deserialize( $message, $bLimitToOne = FALSE) : objectDeSerializes the specified action entity type.
Parameters| Name | Type | Description |
|---|
| $message | | |
|---|
| $bLimitToOne | | |
|---|
Returns| Type | Description |
|---|
| object | Returns the de serialized object. |



Deserialize( $message, $limit = FALSE) : stringinheritedDeSerializes the message to Type T.
Inherited from:
Parameters| Name | Type | Description |
|---|
| $message | | |
|---|
| $limit | | |
|---|
Returns| Type | Description |
|---|
| string | Returns the deserialized message. |



ParseArbitraryResultObjects(string $responseXml, boolean $bLimitToOne) : arraystaticParse an XML string into an array of IPPIntuitEntity objects
Parameters| Name | Type | Description |
|---|
| $responseXml | string | XML string to parse |
|---|
| $bLimitToOne | boolean | Signals to only parse the first element |
|---|
Returns| Type | Description |
|---|
| array | of IPPIntuitEntity objects |



PhpObjFromXml( $className, $xmlStr) : \POPOObjectstaticUnmarshall XML into a POPO object, presumably the XML came from an IPP v3 API call
Parameters| Name | Type | Description |
|---|
| $className | | |
|---|
| $xmlStr | | |
|---|
Returns| Type | Description |
|---|
| \POPOObject | $phpObj resulting POPO object |



Serialize( $entity) : stringSerializes the specified entity and updates last used entity name @see resourceURL
Parameters| Name | Type | Description |
|---|
| $entity | | |
|---|
Returns| Type | Description |
|---|
| string | Returns the serialize entity in string format. |



Serialize( $entity) : objectinheritedSerializes the specified entity.
Inherited from:
Parameters| Name | Type | Description |
|---|
| $entity | | |
|---|
Returns| Type | Description |
|---|
| object | Returns the serialize entity in string format. |



__construct( $idsLogger = NULL) : voidInitializes a new instance of the XmlObjectSerializer class.
Parameters| Name | Type | Description |
|---|
| $idsLogger | | |
|---|



cleanPhpClassNameToIntuitEntityName(string $phpClassName) : stringstaticClean a POPO class name (like 'IPPClass') to be an IPP v3 Entity name (like 'Class')
Parameters| Name | Type | Description |
|---|
| $phpClassName | string | POPO class name |
|---|
Returns| Type | Description |
|---|
| string | Intuit Entity name |



cleanPhpClassNameToIntuitEntityName(string $phpClassName) : stringstaticinheritedClean a POPO class name (like 'IPPClass') to be an IPP v3 Entity name (like 'Class')
Inherited from:
Parameters| Name | Type | Description |
|---|
| $phpClassName | string | POPO class name |
|---|
Returns| Type | Description |
|---|
| string | Intuit Entity name |



decorateIntuitEntityToPhpClassName( $intuitEntityName) : \POPOstaticDecorate an IPP v3 Entity name (like 'Class') to be a POPO class name (like 'IPPClass')
Parameters| Name | Type | Description |
|---|
| $intuitEntityName | | |
|---|
Returns| Type | Description |
|---|
| \POPO | class name |



getPostXmlFromArbitraryEntity(\IPPIntuitEntity $entity, string $urlResource) : stringstaticMarshall a POPO object to be XML
Parameters| Name | Type | Description |
|---|
| $entity | \IPPIntuitEntity | The POPO object |
|---|
| $urlResource | string | the type of the POPO object |
|---|
Returns| Type | Description |
|---|
| string | the XML of the POPO object |



getXmlFromObj(\POPOObject $phpObj) : stringstaticMarshall a POPO object to XML, presumably for inclusion on an IPP v3 API call
Parameters| Name | Type | Description |
|---|
| $phpObj | \POPOObject | inbound POPO object |
|---|
Returns| Type | Description |
|---|
| string | XML output derived from POPO object |