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



String $resourceURL = null
Keeps last used object name
Default valuenull
Details- Type
- String
Methods



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



Deserialize( $message, $limit = FALSE) : string
inheritedDeSerializes the message to Type T.
Inherited from:
ParametersName | Type | Description |
---|
$message | | |
---|
$limit | | |
---|
ReturnsType | Description |
---|
string | Returns the deserialized message. |



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



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



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



Serialize( $entity) : object
inheritedSerializes the specified entity.
Inherited from:
ParametersName | Type | Description |
---|
$entity | | |
---|
ReturnsType | Description |
---|
object | Returns the serialize entity in string format. |



__construct( $idsLogger = NULL) : void
Initializes a new instance of the XmlObjectSerializer class.
ParametersName | Type | Description |
---|
$idsLogger | | |
---|



cleanPhpClassNameToIntuitEntityName(string $phpClassName) : string
staticClean a POPO class name (like 'IPPClass') to be an IPP v3 Entity name (like 'Class')
ParametersName | Type | Description |
---|
$phpClassName | string | POPO class name |
---|
ReturnsType | Description |
---|
string | Intuit Entity name |



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



decorateIntuitEntityToPhpClassName( $intuitEntityName) : \POPO
staticDecorate an IPP v3 Entity name (like 'Class') to be a POPO class name (like 'IPPClass')
ParametersName | Type | Description |
---|
$intuitEntityName | | |
---|
ReturnsType | Description |
---|
\POPO | class name |



getPostXmlFromArbitraryEntity(\IPPIntuitEntity $entity, string $urlResource) : string
staticMarshall a POPO object to be XML
ParametersName | Type | Description |
---|
$entity | \IPPIntuitEntity | The POPO object |
---|
$urlResource | string | the type of the POPO object |
---|
ReturnsType | Description |
---|
string | the XML of the POPO object |



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