/** * 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); }
/** * 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); }
<?php /** * Elgg default object view * * @package Elgg * @subpackage Core * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 * @author Curverider Ltd * @copyright Curverider Ltd 2008-2009 * @link http://elgg.org/ */ $serialised = exportAsArray($vars['entity']->guid); foreach ($serialised as $s) { echo $s; }