示例#1
0
 /**
  * Shortcut method
  *
  * @param string $applicationName
  * @param string $notificationName
  * @param string $notificationTitle
  * @param string $notificationText
  * @param array $options
  * @return string
  */
 public function sendNotify($applicationName, $notificationName, $notificationTitle, $notificationText, $options = array())
 {
     $notification_options = $options;
     $notification_options['text'] = $notificationText;
     $register = new RegisterRequest($applicationName);
     $register->addNotification($notificationName);
     $notify = new NotificationRequest($applicationName, $notificationName, $notificationTitle, $notification_options);
     return $this->notifyOrRegister($notify, $register)->getStatus();
 }