return $gm->fetchAll('user_id');
}
-
+ function isMember($uid)
+ {
+ $gm = DB_Dataobject::factory('core_group_member');
+ $gm->group_id = $this->id;
+ $gm->user_id = $uid;
+ return $gm->count();
+ }
function addMember($person)
{
// groups databse is hard coded to person.. so this should not be used for other tables.????
$p = DB_Dataobject::factory( 'core_person' );
+
+
$p->whereAdd('id IN ('. implode(',', $ids) .')');
$p->active = 1;
return $p->fetchAll($what);