Author: david
Date: Thu Dec 3 11:33:17 2009
New Revision: 4057
Log:
Optionally specify 'type' of name for getOtherNames() method.
Modified:
trunk/lib/model/QubitObject.php
Modified: trunk/lib/model/QubitObject.php
==============================================================================
--- trunk/lib/model/QubitObject.php Thu Dec 3 11:25:14 2009 (r4056)
+++ trunk/lib/model/QubitObject.php Thu Dec 3 11:33:17 2009 (r4057)
@@ -201,12 +201,16 @@
Other names
*********************/
- public function getOtherNames()
+ public function getOtherNames($options = array())
{
$criteria = new Criteria;
- $criteria->addJoin(QubitOtherName::TYPE_ID, QubitTerm::ID);
$criteria->add(QubitOtherName::OBJECT_ID, $this->getId());
+ if (isset($options['typeId']))
+ {
+ $criteria->add(QubitOtherName::TYPE_ID, $options['typeId']);
+ }
+
return QubitOtherName::get($criteria);
}
--
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.