Show blocked users from group in section

This commit is contained in:
Evan Prodromou
2011-08-27 15:46:05 -04:00
parent a14224d687
commit 330af9991f
3 changed files with 83 additions and 9 deletions

View File

@@ -209,6 +209,16 @@ class User_group extends Managed_DataObject
return $member_count;
}
function getBlockedCount()
{
// XXX: WORM cache this
$block = new Group_block();
$block->group_id = $this->id;
return $block->count();
}
function getAdmins($offset=0, $limit=null)
{
$qry =