ArraySerializer
class ArraySerializer extends Serialization (View source)
Array serializer.
Properties
protected | $model | from Serialization | |
protected | $options | from Serialization | |
protected | $attributes | from Serialization | |
static | $DATETIME_FORMAT | The default format to serialize DateTime objects to. | from Serialization |
protected boolean | $includes_with_class_name_element | Set this to true if the serializer needs to create a nested array keyed on the name of the included classes such as for xml serialization. | from Serialization |
static | $include_root |
Methods
from Serialization
string
to_s()
Performs the serialization.
Details
in Serialization at line 96
Serialization
__construct(Model $model, array $options)
Constructs a {@link Serialization} object.
in Serialization at line 209
final protected
options_to_a($key)
in Serialization at line 219
final array
to_a()
Returns the attributes array.
in Serialization at line 235
final string
__toString()
Returns the serialized object as a string.
at line 256
string
to_s()
Performs the serialization.