Пример #1
0
 /**
  * 
  */
 public static function send($pn_user_id, $ps_message)
 {
     $ps_message = preg_replace('![^A-Za-z0-9\\!@#\\$\\%\\^\\&\\*\\(\\)\\<\\>\\?/:;,\\.]+!', ' ', $ps_message);
     if (!$ps_message) {
         return null;
     }
     $o_config = Configuration::load();
     if (!(bool) $o_config->get('enable_sms_notifications')) {
         return null;
     }
     if (!SMS::$plugin) {
         SMS::loadPlugin();
     }
     return call_user_func(array(SMS::$plugin, "send"), $pn_user_id, $ps_message);
 }