31 include_once 
'Services/Block/classes/class.ilBlockGUI.php';
 
   43                 $lng->loadLanguageModule(
"chat");
 
   45                 $this->
setTitle($lng->txt(
"chat_chatviewer"));
 
   47                 $this->allow_moving = 
true;
 
   90                 $next_class = $ilCtrl->getNextClass();
 
   91                 $cmd = $ilCtrl->getCmd(
"getHTML");
 
   99                 include_once 
'Modules/Chat/classes/class.ilChatServerConfig.php';
 
  100                 include_once 
'Services/YUI/classes/class.ilYuiUtil.php';
 
  106                 if ($this->
getCurrentDetailLevel() == 0 || !$serverconfig->getActiveStatus() || !$serverconfig->isAlive())
 
  110                         $tpl->addCss(
'Modules/Chat/templates/default/chat.css');
 
  124                 include_once 
'Modules/Chat/classes/class.ilChatBlock.php';
 
  126                 $tpl->addJavascript(
"Modules/Chat/js/ChatChatviewerBlock.js");
 
  130                 $body_tpl = 
new ilTemplate(
'tpl.chat_block_message_body.html', 
true, 
true, 
'Modules/Chat');
 
  137                 $body_tpl->setVariable(
'BLOCK_HEIGHT', $height);
 
  138                 $body_tpl->setVariable(
'TXT_ENABLE_AUTOSCROLL', $lng->txt(
'chat_enable_autoscroll'));           
 
  139                 $ilCtrl->setParameter($this, 
'ref_id', 
'#__ref_id');
 
  140                 $ilCtrl->setParameter($this, 
'room_id', 
'#__room_id');
 
  141                 $body_tpl->setVariable(
'CHATBLOCK_BASE_URL', 
'ilias.php?ref_id=#__ref_id&room_id=#__room_id&cmdClass=ilobjchatgui&cmd=getChatViewerBlockContent&baseClass=ilChatPresentationGUI&cmdMode=asynch');
 
  142                 $ilCtrl->clearParameters($this);
 
  144                 $content = $body_tpl->get() . $chatblock->getRoomSelect();