DataObjects/Core_notify_recur.php
[Pman.Core] / DataObjects / Projects.php
index 056f055..64ce9b4 100644 (file)
@@ -300,14 +300,15 @@ 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("
             (client_id= $id) OR (agency_id= $id)
         ");
@@ -315,6 +316,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);
+         
+            
     }