Example #1
0
 /**
  * Sets the last event and notifies the observers
  * 
  * @param string $name Name of the event
  * @param mixed  $data The event's data
  * 
  * @return void
  */
 public static function setLastEvent($name, $data)
 {
     self::$lastEvent = array('name' => $name, 'data' => $data);
     self::notify();
 }