ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChatBlockGUI Class Reference

Class ilChatBlockGUI. More...

+ Inheritance diagram for ilChatBlockGUI:
+ Collaboration diagram for ilChatBlockGUI:

Public Member Functions

 ilChatBlockGUI ()
 Constructor.
executeCommand ()
 execute command
 getHTML ()
 Get HTML.
 fillDataSection ()
 Fill data section.
 fillRow ($a_set)
 Fill feedback row.
 getOverview ()
 Get overview.
- Public Member Functions inherited from ilBlockGUI
 ilBlockGUI ()
 Constructor.
 addHeaderLink ($a_href, $a_text, $status=true)
 getHeaderLinks ()
 setData ($a_data)
 Set Data.
 getData ()
 Get Data.
 setBigMode ($a_bigmode)
 Set Big Mode.
 getBigMode ()
 Get Big Mode.
 setBlockId ($a_block_id=0)
 Set Block Id.
 getBlockId ()
 Get Block Id.
 setAvailableDetailLevels ($a_max, $a_min=0)
 Set Available Detail Levels.
 setCurrentDetailLevel ($a_currentdetaillevel)
 Set Current Detail Level.
 setGuiObject (&$a_gui_object)
 Set GuiObject.
 getGuiObject ()
 Get GuiObject.
 getCurrentDetailLevel ()
 Get Current Detail Level.
 setTitle ($a_title)
 Set Title.
 getTitle ()
 Get Title.
 setImage ($a_image)
 Set Image.
 getImage ()
 Get Image.
 setOffset ($a_offset)
 Set Offset.
 getOffset ()
 Get Offset.
 correctOffset ()
 setLimit ($a_limit)
 Set Limit.
 getLimit ()
 Get Limit.
 setEnableEdit ($a_enableedit)
 Set EnableEdit.
 getEnableEdit ()
 Get EnableEdit.
 setRepositoryMode ($a_repositorymode)
 Set RepositoryMode.
 getRepositoryMode ()
 Get RepositoryMode.
 setFooterInfo ($a_footerinfo, $a_hide_and_icon=false)
 Set Footer Info.
 getFooterInfo ($a_hide_and_icon=false)
 Get Footer Info.
 setSubtitle ($a_subtitle)
 Set Subtitle.
 getSubtitle ()
 Get Subtitle.
 setRefId ($a_refid)
 Set Ref Id (only used if isRepositoryObject() is true).
 getRefId ()
 Get Ref Id (only used if isRepositoryObject() is true).
 setAdminCommands ($a_admincommands)
 Set Administration Commmands.
 getAdminCommands ()
 Get Administration Commmands.
 setColSpan ($a_colspan)
 Set Columns Span.
 getColSpan ()
 Get Columns Span.
 setEnableDetailRow ($a_enabledetailrow)
 Set EnableDetailRow.
 getEnableDetailRow ()
 Get EnableDetailRow.
 setEnableNumInfo ($a_enablenuminfo)
 Set Enable Item Number Info.
 getEnableNumInfo ()
 Get Enable Item Number Info.
 setProperties ($a_properties)
 This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties.
 getProperty ($a_property)
 setProperty ($a_property, $a_value)
 setRowTemplate ($a_rowtemplatename, $a_rowtemplatedir="")
 Set Row Template Name.
 getNavParameter ()
 getDetailParameter ()
 getConfigParameter ()
 getMoveParameter ()
 getRowTemplateName ()
 Get Row Template Name.
 getRowTemplateDir ()
 Get Row Template Directory.
 addBlockCommand ($a_href, $a_text, $a_target="", $a_img="", $a_right_aligned=false)
 Add Block Command.
 getBlockCommands ()
 Get Block commands.
 addHeaderCommand ($a_href, $a_text, $a_as_close=false)
 Add Header Block Command.
 getHeaderCommands ()
 Get Header Block commands.
 addFooterLink ($a_text, $a_href="", $a_onclick="", $a_block_id="", $a_top=false, $a_omit_separator=false)
 Add a footer text/link.
 getFooterLinks ()
 Get footer links.
 clearFooterLinks ()
 Clear footer links.
 handleDetailLevel ()
 Handle read/write current detail level.
 setConfigMode ($a_configmode)
 Handle config status.
 getConfigMode ()
 Get Config Mode (move blocks).
 fillHeaderCommands ()
 Fill header commands block.
 fillHeaderTitleBlock ()
 Fill header title block (title and.
 setDataSection ($a_content)
 Call this from overwritten fillDataSection(), if standard row based data is not used.
 fillFooter ()
 fillPreviousNext ()
 Fill previous/next row.
 setPreviousNextLinks ()
 Get previous/next linkbar.
 fillFooterLinks ($a_top=false, $a_numinfo="")
 Fill footer links.
 fillDetailRow ()
 Fill Detail Setting Row.
 fillMoveRow ()
 Fill row for Moving.
 getAllowMove ($a_direction)
 setAllowMove ($a_direction, $a_allow=true)
 fillMoveLink ($a_value, $a_img, $a_txt)

Static Public Member Functions

static getBlockType ()
 Get block type.
static isRepositoryObject ()
 Is block used in repository object?
static getScreenMode ()
 Get Screen Mode for current command.

Static Public Attributes

static $block_type = "chatviewer"

Additional Inherited Members

- Protected Member Functions inherited from ilBlockGUI
 fillRowColor ($a_placeholder="CSS_ROW")
- Protected Attributes inherited from ilBlockGUI
 $data = array()
 $colspan = 1
 $enablenuminfo = true
 $detail_min = 0
 $detail_max = 0
 $bigmode = false
 $footer_links = array()
 $block_id = 0
 $header_commands = array()
 $allow_moving = true
 $move = array("left" => false, "right" => false, "up" => false, "down" => false)
 $enabledetailrow = true
 $header_links = array()
 $footerinfo = false
 $footerinfo_icon = false
 $block_commands = array()
 $max_count = false
 $close_command = false
 $image = false
 $property = false
 $nav_value = ""
 $css_row = ""

Detailed Description

Member Function Documentation

& ilChatBlockGUI::executeCommand ( )

execute command

Definition at line 86 of file class.ilChatBlockGUI.php.

References $cmd, and $ilCtrl.

{
global $ilCtrl;
$next_class = $ilCtrl->getNextClass();
$cmd = $ilCtrl->getCmd("getHTML");
return $this->$cmd();
}
ilChatBlockGUI::fillDataSection ( )

Fill data section.

Reimplemented from ilBlockGUI.

Definition at line 120 of file class.ilChatBlockGUI.php.

References $ilCtrl, $lng, $tpl, ilBlockGUI\getCurrentDetailLevel(), and ilBlockGUI\setDataSection().

{
global $tpl, $lng, $ilCtrl;
include_once 'Modules/Chat/classes/class.ilChatBlock.php';
$tpl->addJavascript("Modules/Chat/js/ChatChatviewerBlock.js");
//$tpl->addJavascript("Modules/Chat/js/json.js");
$chatblock = new ilChatBlock();
$body_tpl = new ilTemplate('tpl.chat_block_message_body.html', true, true, 'Modules/Chat');
$height = 120;
if ($this->getCurrentDetailLevel() > 0 && $this->getCurrentDetailLevel() <= 3)
{
$height *= $this->getCurrentDetailLevel();
}
$body_tpl->setVariable('BLOCK_HEIGHT', $height);
$body_tpl->setVariable('TXT_ENABLE_AUTOSCROLL', $lng->txt('chat_enable_autoscroll'));
$ilCtrl->setParameter($this, 'ref_id', '#__ref_id');
$ilCtrl->setParameter($this, 'room_id', '#__room_id');
$body_tpl->setVariable('CHATBLOCK_BASE_URL', 'ilias.php?ref_id=#__ref_id&room_id=#__room_id&cmdClass=ilobjchatgui&cmd=getChatViewerBlockContent&baseClass=ilChatPresentationGUI&cmdMode=asynch');
$ilCtrl->clearParameters($this);
$content = $body_tpl->get() . $chatblock->getRoomSelect();
$this->setDataSection($content);
}

+ Here is the call graph for this function:

ilChatBlockGUI::fillRow (   $a_set)

Fill feedback row.

Reimplemented from ilBlockGUI.

Definition at line 152 of file class.ilChatBlockGUI.php.

References $ilCtrl, and $lng.

{
global $ilUser, $ilCtrl, $lng;
// $ilCtrl->setParameterByClass("ilfeedbackgui","barometer_id",$a_set["id"]);
// $this->tpl->setVariable('LINK_FEEDBACK',
// $ilCtrl->getLinkTargetByClass(array("ilpersonaldesktopgui", 'ilfeedbackgui'),'voteform'));
// $this->tpl->setVariable('TXT_FEEDBACK', $a_set["title"]);
}
static ilChatBlockGUI::getBlockType ( )
static

Get block type.

Returns
string Block type.

Reimplemented from ilBlockGUI.

Definition at line 55 of file class.ilChatBlockGUI.php.

References $block_type.

{
}
ilChatBlockGUI::getHTML ( )

Get HTML.

Reimplemented from ilBlockGUI.

Definition at line 96 of file class.ilChatBlockGUI.php.

References $tpl, ilBlockGUI\getCurrentDetailLevel(), and ilYuiUtil\initJson().

{
global $tpl;
include_once 'Modules/Chat/classes/class.ilChatServerConfig.php';
include_once 'Services/YUI/classes/class.ilYuiUtil.php';
$serverconfig = new ilChatServerConfig();
if ($this->getCurrentDetailLevel() == 0 || !$serverconfig->getActiveStatus() || !$serverconfig->isAlive())
return "";
else
{
$tpl->addCss('Modules/Chat/templates/default/chat.css');
$html = parent::getHTML();
return $html;
}
}

+ Here is the call graph for this function:

ilChatBlockGUI::getOverview ( )

Get overview.

Definition at line 164 of file class.ilChatBlockGUI.php.

References $ilCtrl, and $lng.

{
global $ilUser, $lng, $ilCtrl;
// return '<div class="small">'.((int) count($this->feedbacks))." ".$lng->txt("pdesk_feedbacks")."</div>";
}
static ilChatBlockGUI::getScreenMode ( )
static

Get Screen Mode for current command.

Reimplemented from ilBlockGUI.

Definition at line 73 of file class.ilChatBlockGUI.php.

References $_GET, and IL_SCREEN_SIDE.

{
switch($_GET["cmd"])
{
default:
break;
}
}
ilChatBlockGUI::ilChatBlockGUI ( )

Constructor.

Definition at line 39 of file class.ilChatBlockGUI.php.

References $ilCtrl, $lng, ilUtil\getImagePath(), ilBlockGUI\ilBlockGUI(), ilBlockGUI\setAvailableDetailLevels(), ilBlockGUI\setImage(), and ilBlockGUI\setTitle().

{
global $ilCtrl, $lng, $ilUser;
$lng->loadLanguageModule("chat");
$this->setImage(ilUtil::getImagePath("icon_chat.gif"));
$this->setTitle($lng->txt("chat_chatviewer"));
$this->allow_moving = true;
}

+ Here is the call graph for this function:

static ilChatBlockGUI::isRepositoryObject ( )
static

Is block used in repository object?

Returns
string Block type.

Reimplemented from ilBlockGUI.

Definition at line 65 of file class.ilChatBlockGUI.php.

{
return false;
}

Field Documentation

ilChatBlockGUI::$block_type = "chatviewer"
static

Definition at line 34 of file class.ilChatBlockGUI.php.

Referenced by getBlockType().


The documentation for this class was generated from the following file: