Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. public static function send($message)
  2.     {
  3.         static::$message = $message;
  4.  
  5.         $enabled = Settings::Where('key', 'LIKE', '%notify_enabled_%')->get();
  6.  
  7.         foreach($enabled as $notifyService)
  8.         {
  9.             if(intval($notifyService->value) == 1)
  10.             {
  11.                 $function = ltrim("notify_enabled_", $notifyService->key);
  12.                 $function();
  13.             }
  14.         }
  15.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement