Beispiel #1
0
 /**
  * Factory method for getting an object
  *
  * @return RM_Notifications_Manager
  */
 public static function &getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new RM_Notifications_Manager();
     }
     return self::$_instance;
 }
Beispiel #2
0
 private function _fireUserCreationEvent()
 {
     $manager = RM_Reservation_Manager::getInstance();
     if ($manager->getCriteria() === null) {
         return false;
     }
     // fire the notification event
     return RM_Notifications_Manager::getInstance()->fire('CustomerRegistrationSuccessful', $manager);
 }
 function notcompleteAction()
 {
     $model = new RM_Templates();
     $template = $model->find('ReservationFailed')->current();
     if ($template !== null) {
         $iso = RM_Environment::getInstance()->getLocale();
         $this->view->template = $template->{$iso};
     } else {
         $this->view->template = '';
     }
     // fire the not completed event
     $manager = RM_Reservation_Manager::getInstance();
     RM_Notifications_Manager::getInstance()->fire('ReservationCompleteUnsuccessful', $manager);
 }