Author: david
Date: Thu Sep 17 14:02:36 2009
New Revision: 3376

Log:
Add shortcut method for getting root information object.

Modified:
   trunk/lib/model/QubitInformationObject.php

Modified: trunk/lib/model/QubitInformationObject.php
==============================================================================
--- trunk/lib/model/QubitInformationObject.php  Thu Sep 17 12:29:03 2009        
(r3375)
+++ trunk/lib/model/QubitInformationObject.php  Thu Sep 17 14:02:36 2009        
(r3376)
@@ -175,6 +175,11 @@
     SearchIndex::updateTranslatedLanguages($this);
   }
 
+  public static function getRoot()
+  {
+    return self::getById(self::ROOT_ID);
+  }
+
   /**
    * Additional actions to take on delete
    *

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to