Method Serializer.Serializable()->_serialize_variable()
- Method
_serialize_variable
protectedvoid_serialize_variable(function(mixed,string,type:void)serializer,mixedvalue,stringsymbol,typesymbol_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