DataObjects/Core_project.php
authorAlan Knowles <alan@roojs.com>
Wed, 19 Oct 2016 02:58:03 +0000 (10:58 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Oct 2016 02:58:03 +0000 (10:58 +0800)
DataObjects/Core_project.php

index 5193f1c..671c76e 100644 (file)
@@ -272,6 +272,26 @@ class Pman_Core_DataObjects_Core_project extends DB_DataObject
             
     }
     
+    
+    
+    function client()
+    {
+        $c = DB_DataObject::factory('core_company');
+        $c->get($this->client_id);
+        return $c;
+    }
+    
+    
+    
+    function team()
+    {
+        $c = DB_DataObject::factory('core_group');
+        $c->get($this->team_id);
+        return $c;
+    }
+    
+    
+    
     // DEPRICATED - use userProjects
     
     function getUserProjects($au, $data='id') // COMPANY BASED!!!!
@@ -282,13 +302,6 @@ class Pman_Core_DataObjects_Core_project extends DB_DataObject
     }
     
     
-    function client()
-    {
-        $c = DB_DataObject::factory('Companies');
-        $c->get($this->client_id);
-        return $c;
-    }
-    
     /**
      * check who is trying to access this. false == access denied..
      */