public function mail_to(\System\Template\Renderer $ren, array $opts) { $leaders = $this->get_leaders(); $rcpt = array(); foreach ($leaders as $leader) { $opts["id_user"] = $leader->id_user; $notice = \Impro\User\Notice::for_user($leader->user, $opts); $notice->mail($ren->locales()); } return $this; }
public function to_html(\System\Template\Renderer $ren) { return $this->name ? sprintf('%s (%s): %s', $ren->locales()->trans($this->get_type_name()), $this->name, $this->ident) : sprintf('%s: %s', $ren->locales()->trans($this->get_type_name()), $this->ident); }