Ejemplo n.º 1
0
 /**
  * Output all the notification methods to the template
  *
  * @param \src\notification\manager $src_notifications
  * @param \src\template\template $template
  * @param \src\user $user
  * @param string $block
  */
 public function output_notification_methods(\src\notification\manager $src_notifications, \src\template\template $template, \src\user $user, $block = 'notification_methods')
 {
     $notification_methods = $src_notifications->get_subscription_methods();
     foreach ($notification_methods as $method => $method_data) {
         $template->assign_block_vars($block, array('METHOD' => $method_data['id'], 'NAME' => $user->lang($method_data['lang'])));
     }
 }