Пример #1
0
 public function notify($arg0 = "", $arg1 = null, $arg2 = null, $arg3 = null)
 {
     $options = array();
     $options['pnotify_text'] = "";
     if (is_array($arg0)) {
         $options = $arg0;
     } else {
         $options['pnotify_text'] = $arg0;
         if ($arg1 !== null) {
             $options['pnotify_title'] = $arg1;
         }
         if ($arg2 !== null) {
             $options['pnotify_stack'] = $arg2;
         }
         if ($arg3 !== null) {
             $options['pnotify_type'] = $arg3;
         }
     }
     JQuery::usePlugin('pnotify');
     return str_replace(array("'", '"'), array("\\'", '\''), Notify::build($options));
 }
 public static function alarm($content)
 {
     return self::build(PNotify::alarm($content));
 }