projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0c1e2
)
DataObjects/Core_groups.php
author
Alan Knowles
<alan@roojs.com>
Fri, 7 Oct 2016 04:49:58 +0000
(12:49 +0800)
committer
Alan Knowles
<alan@roojs.com>
Fri, 7 Oct 2016 04:49:58 +0000
(12:49 +0800)
DataObjects/Core_groups.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_groups.php
b/DataObjects/Core_groups.php
index
712b48d
..
1343436
100644
(file)
--- a/
DataObjects/Core_groups.php
+++ b/
DataObjects/Core_groups.php
@@
-103,6
+103,14
@@
class Pman_Core_DataObjects_Core_groups extends DB_DataObject
}
+
+ function memberCount()
+ {
+ $gm = DB_Dataobject::factory($this->membersTable());
+ $gm->group_id = $this->id;
+ return $gm->count();
+ }
+
function memberIds()
{
$gm = DB_Dataobject::factory($this->membersTable());