/** * Sends to client an async message containing all pending status change notifications * */ public function notify() { $async_message = __AsyncMessageFactory::getInstance()->createComponentsAsyncMessage($this->_dirty_components); $response = __FrontController::getInstance()->getResponse(); $response->appendContent($async_message->toJson()); $response->flush(); }
/** * Gets a {@link __AsyncMessageFactory} singleton instance * * @return __AsyncMessageFactory */ public static function &getInstance() { if (self::$_instance == null) { self::$_instance = new __AsyncMessageFactory(); } return self::$_instance; }