Refactoring on notification mail generation: common profile & footer chunks pulled out, notifications added for group joins.

This commit is contained in:
Brion Vibber
2011-03-22 16:26:26 -07:00
parent a12680e8d5
commit 14a6ab2b04
4 changed files with 216 additions and 75 deletions

View File

@@ -162,4 +162,13 @@ class Group_member extends Memcached_DataObject
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());
}
}