$gm->insert();
}
}
+ /**
+ *
+ * grab a list of members - default is the array of person objects..
+ * @param $what = set to 'email' to get a list of email addresses.
+ *
+ *
+ */
- function members()
+ function members($what = false)
{
-
-
$ids = $this->memberIds();
if (!$ids) {
return array();
$p = DB_Dataobject::factory(empty($ff->Pman['authTable']) ? 'Person' : $ff->Pman['authTable']);
$p->whereAdd('id IN ('. implode(',', $ids) .')');
$p->active = 1;
- return $p->fetchAll();
+ return $p->fetchAll($what);
+