Extends
lithium\core\Object
Write strategy method.
Base64-encodes the passed data.
Parameters
- mixed $data The data to be serialized.
Returns
string Serialized data.Source
public function write($data) {
return base64_encode($data);
}