/**
* Import a relationship
*
- * @param array $data ODD data
- *
- * @return ElggRelationship
- *
+ * @param ODD $data ODD data
+
+ * @return bool
* @throws ImportException
*/
public function import(ODD $data) {
- if (!($element instanceof ODDRelationship)) {
+ if (!($data instanceof ODDRelationship)) {
throw new InvalidParameterException(elgg_echo('InvalidParameterException:UnexpectedODDClass'));
}
throw new ImportException(elgg_echo('ImportException:ProblemSaving', array(get_class())));
}
- return $this;
+ return true;
}
}
}