projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59ff51b
)
DataObjects/ProjectDirectory.php
author
Alan Knowles
<alan@akbkhome.com>
Wed, 4 Apr 2012 12:18:45 +0000
(20:18 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 4 Apr 2012 12:18:45 +0000
(20:18 +0800)
DataObjects/ProjectDirectory.php
patch
|
blob
|
history
diff --git
a/DataObjects/ProjectDirectory.php
b/DataObjects/ProjectDirectory.php
index
4d9cf5c
..
6930160
100644
(file)
--- a/
DataObjects/ProjectDirectory.php
+++ b/
DataObjects/ProjectDirectory.php
@@
-69,6
+69,13
@@
class Pman_Core_DataObjects_ProjectDirectory extends DB_DataObject
function projects($au)
{
$c = clone ($this);
function projects($au)
{
$c = clone ($this);
+ if (empty($au)) {
+ $p = DB_DataObject::Factory('Projects');
+ $p->get('code', '*PUBLIC');
+ return array($p->id);
+
+ }
+
if (is_array($au)) {
$c->whereAddIn('person_id', $au, 'int');
} else {
if (is_array($au)) {
$c->whereAddIn('person_id', $au, 'int');
} else {