Author: sevein
Date: Tue Aug 16 14:12:10 2011
New Revision: 9501

Log:
Add getRights method to QubitObject

Modified:
   trunk/lib/model/QubitObject.php

Modified: trunk/lib/model/QubitObject.php
==============================================================================
--- trunk/lib/model/QubitObject.php     Tue Aug 16 14:10:03 2011        (r9500)
+++ trunk/lib/model/QubitObject.php     Tue Aug 16 14:12:10 2011        (r9501)
@@ -369,4 +369,13 @@
 
     return QubitOtherName::get($criteria);
   }
+
+  /********************
+       Rights
+  *********************/
+
+  public function getRights($options = array())
+  {
+    return QubitRelation::getRelationsBySubjectId($this->id, array('typeId' => 
QubitTerm::RIGHT_ID));
+  }
 }

-- 
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.

Reply via email to