lithium\data\Collection::serialize()
Prepares, enables and executes serialization of the object.
Note: because of the limitations outlined below custom handlers are ignored with serialized objects.
Pulls all results to entirely populate _data
and closes the object
freeing the associated result resource. This allows for skipping
the _result
property which may hold unserializable PDOStatement
s.
Properties that hold anonymous functions are also skipped. Some of these
can almost be reconstructed (_handlers
).
Returns
stringSerialized properties of the object.
Source
public function serialize() {
return serialize($this->__serialize());
}