XmlSerializer
- Full name:
\Qubus\Support\Serializer\XmlSerializer
- Parent class:
\Qubus\Support\Serializer\Serializer
Methods
__construct
Inherited methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$strategy | \Qubus\Support\Serializer\Strategy\Strategy |
getTransformer
This is handy specially in order to add additional data before the serialization process takes place using the transformer public methods, if any.
serialize
Serialize the data.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
Return Value:
Serialized data.
Throws:
reset
Reset variables.
serializeData
Parse the data to be serialized.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
Throws:
guardForUnsupportedValues
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
Throws:
unserialize
Unserialize the value from string.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
Throws:
unserializeData
Parse the json decode to convert to objects again.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
Throws:
getScalarValue
Parameters:
Parameter | Type | Description |
---|---|---|
$value | mixed |
unserializeObject
Convert the serialized array into an object.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array |
Throws:
unserializeDateTimeFamilyObject
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array | |
$className | string |
Throws:
isDateTimeFamilyObject
Parameters:
Parameter | Type | Description |
---|---|---|
$className | string |
restoreUsingUnserialize
Parameters:
Parameter | Type | Description |
---|---|---|
$className | string | |
$attributes | array |
Throws:
unserializeUserDefinedObject
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array | |
$className | string |
Throws:
setUnserializedObjectProperties
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array | |
$ref | \ReflectionClass | |
$obj | mixed |
Throws:
serializeScalar
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
serializeArray
Parameters:
Parameter | Type | Description |
---|---|---|
$data | array |
Throws:
serializeObject
Extract the data from an object.
Parameters:
Parameter | Type | Description |
---|---|---|
$data | mixed |
Throws:
serializeInternalClass
Parameters:
Parameter | Type | Description |
---|---|---|
$value | mixed | |
$className | string | |
$ref | \ReflectionClass |
getObjectProperties
Return the list of properties to be serialized.
Parameters:
Parameter | Type | Description |
---|---|---|
$ref | \ReflectionClass | |
$data | object |
extractObjectData
Extract the object data.
Parameters:
Parameter | Type | Description |
---|---|---|
$value | mixed | |
$rc | \ReflectionClass | |
$properties | array |
extractCurrentObjectProperties
protected extractCurrentObjectProperties(mixed $value, \ReflectionClass $rc, array $properties, array& $data): void
Parameters:
Parameter | Type | Description |
---|---|---|
$value | mixed | |
$rc | \ReflectionClass | |
$properties | array | |
$data | array |
extractAllInhertitedProperties
Parameters:
Parameter | Type | Description |
---|---|---|
$value | mixed | |
$rc | \ReflectionClass | |
$data | array |
Automatically generated on 2025-10-13