Pike v8.0 release 1738

Method Serializer.Serializable()->_serialize_variable()


Method _serialize_variable

protected void _serialize_variable(function(mixed, string, type:void) serializer, mixed value, string symbol, type symbol_type)

Description

Default serialization function for variables.

Parameter serializer

Function to be called in turn.

Parameter value

Value of the variable.

Parameter symbol

Variable name.

Parameter symbol_type

Type of the variable.

This function is typically called from _serialize(), and just does

serializer(value, symbol, symbol_type);

It is provided for overloading for eg filtering or validation purposes.

See also

_serialize(), _deserialize_variable()