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(); }
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(); }