예제 #1
0
 function sendXHTMLContent()
 {
     $httpHeader = new AJAXChatHTTPHeader($this->getConfig('contentEncoding'), $this->getConfig('contentType'));
     $template = new AJAXChatTemplate($this, $this->getTemplateFileName(), $httpHeader->getContentType());
     // Send HTTP header:
     $httpHeader->send();
     // Send parsed template content:
     echo $template->getParsedContent();
 }
 function getShoutBoxContent()
 {
     $template = new AJAXChatTemplate($this, AJAX_CHAT_PATH . 'lib/template/shoutbox.html');
     // Return parsed template content:
     return $template->getParsedContent();
 }
예제 #3
0
파일: Chat.php 프로젝트: Sywooch/forums
 public function getWidgetContent()
 {
     $template = new AJAXChatTemplate(MODM_AJAXChat_Model_Chat::$_ajaxChatInterface, AJAX_CHAT_PATH . 'lib/template/widget.html');
     MODM_AjaxChat_Model_Chat::$_ajaxChatInterface->setConfig("modm_widget", null, 1);
     // Return parsed template content:
     return $template->getParsedContent();
 }