projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87855a
)
DataObjects/Groups.php
author
Chris
<chris@roojs.com>
Mon, 11 Mar 2013 08:28:18 +0000
(16:28 +0800)
committer
Chris
<chris@roojs.com>
Mon, 11 Mar 2013 08:28:18 +0000
(16:28 +0800)
DataObjects/Groups.php
patch
|
blob
|
history
diff --git
a/DataObjects/Groups.php
b/DataObjects/Groups.php
index
cd60ebd
..
37c900b
100755
(executable)
--- a/
DataObjects/Groups.php
+++ b/
DataObjects/Groups.php
@@
-109,11
+109,18
@@
class Pman_Core_DataObjects_Groups extends DB_DataObject
$p->whereAdd('id IN ('. implode(',', $ids) .')');
$p->active = 1;
return $p->fetchAll($what);
-
-
-
-
}
+
+ function lookup($k,$v = false) {
+ if ($v === false) {
+ $v = $k;
+ $k = 'id';
+ }
+ $this->get($k,$v);
+
+ return $this;
+ }
+
function postListFilter($ar, $au, $req)
{