From 16c5d23c86b6b18157d1d6d99ee870e980ae8150 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 15 Apr 2008 14:20:57 +0000 Subject: Marcus Povey * Minor tweaks git-svn-id: https://code.elgg.org/elgg/trunk@455 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/export.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'engine') diff --git a/engine/lib/export.php b/engine/lib/export.php index cbb7465ee..26d31733b 100644 --- a/engine/lib/export.php +++ b/engine/lib/export.php @@ -37,7 +37,7 @@ * The function should return the constructed object data, or NULL. * * @param ODD $data - * @return mixed The newly imported object. + * @return bool * @throws ImportException if there was a critical error importing data. */ public function import(ODD $data); @@ -437,13 +437,13 @@ * This will make a best attempt at importing a given xml doc. * * @param string $xml - * @return array An array of imported objects (these have already been saved). + * @return bool * @throws Exception if there was a problem importing the data. */ function import($xml) { global $IMPORTED_DATA, $IMPORTED_OBJECT_COUNTER; - + $IMPORTED_DATA = array(); $IMPORTED_OBJECT_COUNTER = 0; @@ -452,7 +452,7 @@ if ($IMPORTED_OBJECT_COUNTER!= count($IMPORTED_DATA)) throw new ImportException("Not all elements were imported."); - return $IMPORTED_DATA; + return true; } ?> \ No newline at end of file -- cgit v1.2.3