Public Member Functions

ilObjChatGUIAdapter Class Reference

Inheritance diagram for ilObjChatGUIAdapter:
Collaboration diagram for ilObjChatGUIAdapter:

Public Member Functions

 ilObjChatGUIAdapter ($a_ref_id, $a_cmd= '')
 Constructor public.
 __prepareOutput ()
 __setReturnLocation ()
 __setFormAction ()
 __showLocator ()
 __setStyleSheetLocation ()

Detailed Description

Definition at line 38 of file class.ilObjChatGUIAdapter.php.


Member Function Documentation

ilObjChatGUIAdapter::__prepareOutput (  ) 

Definition at line 63 of file class.ilObjChatGUIAdapter.php.

References $title, __showLocator(), sendInfo(), and ilObjectGUIAdapter::setAdminTabs().

Referenced by ilObjChatGUIAdapter().

        {
                $this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
                $this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");

                $title = $this->gui_obj->object->getTitle();

                // catch feedback message
                sendInfo();

                if (!empty($title))
                {
                        $this->tpl->setVariable("HEADER", $title);
                }

                $this->setAdminTabs();
                $this->__showLocator();
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilObjChatGUIAdapter::__setFormAction (  ) 

Definition at line 106 of file class.ilObjChatGUIAdapter.php.

References ilObjectGUIAdapter::getId().

Referenced by ilObjChatGUIAdapter().

        {
                $this->gui_obj->setFormAction("update","chat_rep.php?cmd=gateway&ref_id=".$this->getId());
                $this->gui_obj->setFormAction("gateway","chat_rep.php?cmd=gateway&ref_id=".$this->getId());
                $this->gui_obj->setFormAction("permSave","chat_rep.php?cmd=permSave&ref_id=".$this->getId());
                $this->gui_obj->setFormAction("addRole","chat_rep.php?cmd=addRole&ref_id=".$this->getId());
                $this->gui_obj->setFormAction("updateMembers","chat_rep.php?cmd=updateMembers&ref_id=".$this->getId());
                $this->gui_obj->setFormAction("newMembers","chat_rep.php?cmd=newMembers&ref_id=".$this->getId());
                $this->gui_obj->setFormAction("downloadFile","chat_rep.php?cmd=downloadFile&ref_id=".$this->getId());
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilObjChatGUIAdapter::__setReturnLocation (  ) 

Definition at line 82 of file class.ilObjChatGUIAdapter.php.

References ilObjectGUIAdapter::getId().

Referenced by ilObjChatGUIAdapter().

        {
                
                $this->gui_obj->setReturnLocation("permSave","chat_rep.php?cmd=perm&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("addRole","chat_rep.php?cmd=perm&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("addRole","chat_rep.php?cmd=perm&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("cancel","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("update","chat_rep.php?cmd=edit&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("uploadFile","chat_rep.php?cmd=edit&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("members","chat_rep.php?cmd=members&ref_id=".$this->getId());

                $this->gui_obj->setReturnLocation("view","chat_rep.php?ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("save","chat_rep.php?cmd=view&ref_id=".$current_ref_id);
                $this->gui_obj->setReturnLocation("cut","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("clear","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("copy","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("link","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("paste","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("cancelDelete","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("confirmedDelete","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("removeFromSystem","chat_rep.php?cmd=view&ref_id=".$this->getId());
                $this->gui_obj->setReturnLocation("undelete","chat_rep.php?cmd=view&ref_id=".$this->getId());
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilObjChatGUIAdapter::__setStyleSheetLocation (  ) 

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

References ilUtil::getStyleSheetLocation().

Referenced by ilObjChatGUIAdapter().

        {
                $this->tpl->setCurrentBlock("ChatStyle");
                $this->tpl->setVariable("LOCATION_CHAT_STYLESHEET",ilUtil::getStyleSheetLocation());
                $this->tpl->parseCurrentBlock();
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilObjChatGUIAdapter::__showLocator (  ) 

Definition at line 116 of file class.ilObjChatGUIAdapter.php.

References ilObjectGUIAdapter::getId().

Referenced by __prepareOutput().

        {
                $path_info = $this->gui_obj->tree->getPathFull($this->getId());

                $this->tpl->addBlockFile("LOCATOR","locator","tpl.locator.html");

                $this->tpl->setCurrentBlock("locator_item");
                $this->tpl->setVariable("LINK_ITEM","../repository.php");
                $this->tpl->setVariable("ITEM",$this->lng->txt("repository"));
                $this->tpl->parseCurrentBlock();

                $repository_link = true;
                for($i = 1; $i < count($path_info); ++$i)
                {
                        if($path_info[$i]["child"] == $this->getId())
                        {
                                $repository_link = false;
                        }
                        $this->tpl->touchBlock("locator_separator_prefix");
                        $this->tpl->setCurrentBlock("locator_item");
                        if($repository_link)
                        {
                                $this->tpl->setVariable("LINK_ITEM","../repository.php?ref_id=".$path_info[$i]["child"]);
                        }
                        else
                        {
                                $this->tpl->setVariable("LINK_ITEM","./chat_rep.php?ref_id=".$path_info[$i]["child"]);
                        }
                        $this->tpl->setVariable("ITEM",$path_info[$i]["title"]);
                        $this->tpl->parseCurrentBlock();
                }
                $this->tpl->setCurrentBlock("locator");
                $this->tpl->setVariable("TXT_LOCATOR",$this->lng->txt("locator"));
                $this->tpl->parseCurrentBlock();
        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilObjChatGUIAdapter::ilObjChatGUIAdapter ( a_ref_id,
a_cmd = '' 
)

Constructor public.

Definition at line 44 of file class.ilObjChatGUIAdapter.php.

References __prepareOutput(), __setFormAction(), __setReturnLocation(), __setStyleSheetLocation(), ilObjectGUIAdapter::ilObjectGUIAdapter(), and ilObjectGUIAdapter::performAction().

        {
                define("ILIAS_MODULE","chat");

                parent::ilObjectGUIAdapter($a_ref_id,true,false,$a_cmd);
                $this->gui_obj->setTabTargetScript("chat_rep.php");
                $this->gui_obj->setInModule(true);
                $this->gui_obj->setTargetScript("chat_rep.php");
                $this->__setStyleSheetLocation();
                $this->__setReturnLocation();
                $this->__setFormAction();
                $this->__prepareOutput();

                // FINALLY PERFORM ACTION
                $this->performAction();
        }

Here is the call graph for this function:


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