DataObjects/Groups.php
authorChris <chris@roojs.com>
Mon, 11 Mar 2013 08:28:18 +0000 (16:28 +0800)
committerChris <chris@roojs.com>
Mon, 11 Mar 2013 08:28:18 +0000 (16:28 +0800)
DataObjects/Groups.php

index cd60ebd..37c900b 100755 (executable)
@@ -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)
     {