/**
 * Export a GUID.
 *
 * This function exports a GUID and all information related to it in an XML format.
 *
 * This function makes use of the "serialise" plugin hook, which is passed an array to which plugins
 * should add data to be serialised to.
 *
 * @param int $guid The GUID.
 *
 * @return xml
 * @see ElggEntity for an example of its usage.
 * @access private
 */
function export($guid)
{
    $odd = new ODDDocument(exportAsArray($guid));
    return ODD_Export($odd);
}
Example #2
0
/**
 * Export a GUID.
 *
 * This function exports a GUID and all information related to it in an XML format.
 *
 * This function makes use of the "serialise" plugin hook, which is passed an array to which plugins
 * should add data to be serialised to.
 *
 * @param int $guid The GUID.
 *
 * @return string XML
 * @see \ElggEntity for an example of its usage.
 * @access private
 * @deprecated 1.9
 */
function export($guid)
{
    elgg_deprecated_notice(__FUNCTION__ . ' is deprecated', 1.9);
    $odd = new ODDDocument(exportAsArray($guid));
    return ODD_Export($odd);
}