projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/Core_project.php
[Pman.Core]
/
DataObjects
/
Core_project.php
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..
*/