aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/export.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/export.php')
-rw-r--r--engine/lib/export.php8
1 files changed, 4 insertions, 4 deletions
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