Example #1
0
 public function notifyObservers($inotification)
 {
     if (self::$isVerbose) {
         echo get_class($inotification) . PHP_EOL;
     }
     return parent::notifyObservers($inotification);
 }
 /**
  * Notify <b>Observer</b>s.
  *
  * This method is left public mostly for backward
  * compatibility, and to allow you to send custom
  * notification classes using the facade.
  *
  * Usually you should just call sendNotification
  * and pass the parameters, never having to
  * construct the notification yourself.
  *
  * @param INotification $notification The <b>INotification</b> to have the <b>View</b> notify <b>Observers</b> of.
  * @return void
  */
 public function notifyObservers(INotification $notification)
 {
     if (isset($this->view)) {
         $this->view->notifyObservers($notification);
     }
 }