<?php

namespace FOP;

class Notifications {
  
  

  
  

    // --- Statische Methoden ---
  
  public static function text($subs, $text) { 
    
    
    // --- BLOCK: main ---
    
		// TODO: weitere Attribute wie z.B. Actions, icon usw. verwursten
		$data = [
			'action' => 'notification',
			'title' => _('ERPL Verein'),
			'options' => [
				'body' => ($text) ,
				'icon' => 'img/erpl-verein.svg',
				'data' => []
			]
		];
		if (!empty($subs)) \FOP\Push::sendMessage($subs, json_encode($data));
	
    
  }


  
  

  
  
}



