LuaSerializer
class LuaSerializer implements DataSerializerInterface, DataFileSerializerInterface (View source)
Lua primitive serialization
Traits
Constants
| MODE_RAW |
Export value "as is" This is the default behavior of the serializeData() method |
| MODE_MODULE |
Export value prefixed by a "return" keyword This is the default behavior of the serializeDataToFile() method |
| INTEGER_PATTERN |
|
| LUA_IDENTIFIER_PATTERN |
|
Methods
No description
No description
No description
Get the list of content type supported by the serializer interface.
Indicate if the given data can be unserialized to the given media type
Serialize data to a given media type
No description
No description
No description
Details
at line 192
protected
buildMediaTypeList()
in MediaTypeListTrait at line 21
protected
getMediaTypes()
in MediaTypeListTrait at line 33
protected
matchMediaType(MediaTypeInterface $mediaType)
getSerializableFileMediaTypes()
canSerializeToFile($filename, $data, MediaTypeInterface $mediaType = null)
at line 89
serializeToFile($filename, $data, MediaTypeInterface $mediaType = null)
at line 48
MediaTypeInterface[]
getSerializableDataMediaTypes()
Get the list of content type supported by the serializer interface.
at line 53
boolean
canSerializeData(mixed $data, MediaTypeInterface $mediaType = null)
Indicate if the given data can be unserialized to the given media type
at line 62
string
serializeData(mixed $data, MediaTypeInterface $mediaType = null)
Serialize data to a given media type