midgard_replicator method export_blob
Exports object's binary blob instance.
string export_blob(object object);
Minimum version: 1.8.1
This method takes one argument:
- object , an object instance for which binary file should be exported.
Returns valid xml on success, FALSE otherwise. Export_blob methos is currently usefull with midgard_attachment class, however it may change in a future so other class' object could be used as method argument.
Returned xml content does not contain object's data. It's limited only to file content encoded in Base64 format.
You should use:
- export method if you need to export object instance's data.
- export_purged method if you need to export all object which has been previously purged.
- import_from_xml method if you need to import exported binary blob files.
Examples
$attachment = new midgard_attachment($guid);
$rep = new midgard_replicator($article);
$xml = $rep->export_blob();
$attachment = new midgard_attachment($guid);
$xml = midgard_replicator::export_blob($attachment);
