public static function getInstance() { if (!ClaroNotifier::$instance) { ClaroNotifier::$instance = new ClaroNotifier(); } return ClaroNotifier::$instance; }
private function __construct() { try { // initialize the event manager and notification classes $this->eventManager = EventManager::getInstance(); $this->notification = ClaroNotification::getInstance(); $this->notifier = ClaroNotifier::getInstance(); // initialize logger $this->logger = new Logger(); $this->moduleLabelStack = array(); if (isset($GLOBALS['tlabelReq'])) { $this->pushModuleLabel($GLOBALS['tlabelReq']); pushClaroMessage("Set current module to {$GLOBALS['tlabelReq']}", 'debug'); } } catch (Exception $e) { die($e); } }