DataObjects/Projects.php
authorAlan Knowles <alan@roojs.com>
Sun, 11 Dec 2011 08:28:46 +0000 (16:28 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 11 Dec 2011 08:28:46 +0000 (16:28 +0800)
DataObjects/Projects.php

index 056f055..842bd79 100644 (file)
@@ -300,12 +300,11 @@ class Pman_Core_DataObjects_Projects extends DB_DataObject
     }
     
     
-    
     /**
      * fetch a list of user projects.
      * if you need to filter open/closed.. then add whereAdds before calling
      */
-    function getUserProjects($au, $data='id') // COMPANY BASED!!!!
+    function userProjects($au, $data='id') // COMPANY BASED!!!!
     {
         $id = (int) $au->company_id;
         $this->whereAdd("
@@ -315,6 +314,15 @@ class Pman_Core_DataObjects_Projects extends DB_DataObject
         return empty($data) ? $this->fetchAll() :$this->fetchAll($data); 
          
             
+    }
+    
+    // DEPRICATED - use userProjects
+    
+    function getUserProjects($au, $data='id') // COMPANY BASED!!!!
+    {
+        return $this->userProjects($au, $data)
+         
+            
     }