From eebf21efc8dda30824c58bee33581a044f1cba59 Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 27 Mar 2008 18:23:58 +0000 Subject: Marcus Povey * Sketch import/export functions added, pending event handling functions git-svn-id: https://code.elgg.org/elgg/trunk@275 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/export.php | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 engine/lib/export.php diff --git a/engine/lib/export.php b/engine/lib/export.php new file mode 100644 index 000000000..4a39d295f --- /dev/null +++ b/engine/lib/export.php @@ -0,0 +1,97 @@ + + + 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"); + } +?> \ No newline at end of file -- cgit v1.2.3