projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
60c6ac5
)
DataObjects/Core_project.php
author
Alan Knowles
<alan@roojs.com>
Wed, 19 Oct 2016 02:58:03 +0000
(10:58 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 19 Oct 2016 02:58:03 +0000
(10:58 +0800)
DataObjects/Core_project.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_project.php
b/DataObjects/Core_project.php
index
5193f1c
..
671c76e
100644
(file)
--- a/
DataObjects/Core_project.php
+++ b/
DataObjects/Core_project.php
@@
-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!!!!
// 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..
*/
/**
* check who is trying to access this. false == access denied..
*/