Open Source Content Management System

midgard_replicator method export_blob

  1. Examples

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:

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);

PHP midgard_replicator

Designed by Nemein, hosted by Anykey