DataObjects/Groups.php
authorAlan Knowles <alan@roojs.com>
Thu, 28 Jan 2016 04:54:07 +0000 (12:54 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 Jan 2016 04:54:07 +0000 (12:54 +0800)
DataObjects/Groups.php

index 875348c..2e3d6bd 100755 (executable)
@@ -129,6 +129,15 @@ class Pman_Core_DataObjects_Groups extends DB_DataObject
         return $this;
     } 
     
+    function lookUpMembers($name, $what=false)
+    {
+        if (!$this->get('name', $name)) {
+            return array();
+        }
+        return $this->members($what);
+        
+    }
+    
     function postListFilter($ar, $au, $req)
     {