aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/export.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 14:20:57 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-15 14:20:57 +0000
commit16c5d23c86b6b18157d1d6d99ee870e980ae8150 (patch)
tree2909e8c27247e6b296c562b8871dc4521b93d554 /engine/lib/export.php
parent5c0477c97caf02fa8676c57c80554bdd0adb8504 (diff)
downloadelgg-16c5d23c86b6b18157d1d6d99ee870e980ae8150.tar.gz
elgg-16c5d23c86b6b18157d1d6d99ee870e980ae8150.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Minor tweaks git-svn-id: https://code.elgg.org/elgg/trunk@455 36083f99-b078-4883-b0ff-0f9b5a30f544
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