Author: mcantelon
Date: Tue Jan 3 13:52:49 2012
New Revision: 10541
Log:
Created createObjectTermRelation helper function.
Modified:
trunk/lib/QubitFlatfileImport.class.php
Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php Tue Jan 3 12:54:22 2012
(r10540)
+++ trunk/lib/QubitFlatfileImport.class.php Tue Jan 3 13:52:49 2012
(r10541)
@@ -322,6 +322,16 @@
return $actor;
}
+ public function createObjectTermRelation($objectId, $termId)
+ {
+ $relation = new QubitObjectTermRelation;
+ $relation->termId = $term->id;
+ $relation->objectId = $this->informationObject->id;
+ $relation->save();
+
+ return $relation;
+ }
+
public function createAccessPoint($taxonomyId, $name, $culture = 'en')
{
@@ -339,10 +349,7 @@
$term->save();
}
- $relation = new QubitObjectTermRelation;
- $relation->termId = $term->id;
- $relation->objectId = $this->informationObject->id;
- $relation->save();
+ $this->createObjectTermRelation($this->informationObject->id, $term->id);
}
public function getTaxonomyTerms($taxonomyId, $culture = 'en')
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.