* Table Definition for group_member
*/
-class Group_member extends Memcached_DataObject
+class Group_member extends Managed_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
/**
* Method to add a user to a group.
+ * In most cases, you should call Profile->joinGroup() instead.
*
* @param integer $group_id Group to add to
* @param integer $profile_id Profile being added
return $act;
}
+
+ /**
+ * Send notifications via email etc to group administrators about
+ * this exciting new membership!
+ */
+ public function notify()
+ {
+ mail_notify_group_join($this->getGroup(), $this->getMember());
+ }
}