556 Marcus Povey ... Foo baaaa Monkey bibble ... Foo baaaa ... ... */ } /** * Import an XML serialisation of an object. * This will make a best attempt at importing a given xml doc. * * @param string $xml * @return int The new GUID of the object. */ function import($xml) { // import via object ? // import via tag : so you pass a tag "" and all its contents out and something answers by handling it. // THis is recursive but bredth first. } /** * Generate a UUID from a given GUID. * * @param int $guid The GUID of an object. */ function guid_to_uuid($guid) { global $CONFIG; return md5($CONFIG->wwwroot . ":$guid"); } ?>