midgard_replicator method export
Exports object instance.
bool export([object object]);
Minimum version: 1.8.1
Returns TRUE if object has been succesfully exported, FALSE otherwise. This method only updates object's metadata exported property, so the object's record is marked as exported.
You should use:
- serialize method if you need serialized object's data.
- export_blob method if you need to export midgard_attachment's binary data
- export_purged method if you need to export all object which has been previously purged.
Object parameter is valid parameter if method is used staticaly.
Examples
$article = new midgard_article($guid);
$rep = new midgard_replicator($article);
if($rep->export())
{
echo "Object successfully exported":
}
$article = new midgard_article($guid);
if(midgard_replicator::export($article))
{
echo "Object successfully exported":
}
