Open Source Content Management System

midgard_replicator method export

  1. Examples

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:

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":
}

PHP midgard_replicator

Designed by Nemein, hosted by Anykey