Public Member Functions | Data Fields

ilGlossaryTermGUI Class Reference

Public Member Functions

 ilGlossaryTermGUI ($a_id=0)
 Constructor public.
 executeCommand ()
 execute command
 setGlossary (&$a_glossary)
 setLinkXML ($a_link_xml)
 getLinkXML ()
 create ()
 form for new content object creation
 saveTerm ()
 save term
 editTerm ()
 edit term
 updateTerm ()
 update term
 output ($a_offline=false, $dir="")
 output glossary term definitions
 getInternalLinks ()
 get internal links
 listDefinitions ()
 list definitions
 confirmDefinitionDeletion ()
 deletion confirmation screen
 cancelDefinitionDeletion ()
 deleteDefinition ()
 moveUp ()
 move definition upwards
 moveDown ()
 move definition downwards
 addDefinition ()
 add definition
 cancel ()
 cancel adding definition
 saveDefinition ()
 save definition
 getTemplate ()
 get template
 setTabs ()
 output tabs
 displayLocator ()
 display locator
 getTabs (&$tabs_gui)
 get tabs
 _goto ($a_target, $a_ref_id="")
 redirect script

Data Fields

 $ilias
 $lng
 $tpl
 $glossary
 $term
 $link_xml

Detailed Description

Definition at line 36 of file class.ilGlossaryTermGUI.php.


Member Function Documentation

ilGlossaryTermGUI::_goto ( a_target,
a_ref_id = "" 
)

redirect script

Parameters:
string $a_target

Definition at line 593 of file class.ilGlossaryTermGUI.php.

References $_GET, $glo_id, $ilErr, $lng, $rbacsystem, $ref_id, ilObject::_getAllReferences(), ilGlossaryTerm::_lookGlossaryID(), ilObject::_lookupTitle(), exit, and sendInfo().

        {
                global $rbacsystem, $ilErr, $lng, $ilAccess;

                $glo_id = ilGlossaryTerm::_lookGlossaryID($a_target);//::_lookupContObjID($a_target);
                
                // get all references
                if ($a_ref_id > 0)
                {
                        $ref_ids = array($a_ref_id);
                }
                else
                {
                        $ref_ids = ilObject::_getAllReferences($glo_id);
                }

                // check read permissions
                foreach ($ref_ids as $ref_id)
                {
                        // Permission check
                        if ($ilAccess->checkAccess("read", "", $ref_id))
                        {
                                $_GET["baseClass"] = "ilGlossaryPresentationGUI";
                                $_GET["term_id"] = $a_target;
                                $_GET["ref_id"] = $ref_id;
                                $_GET["cmd"] = "listDefinitions";
                                include_once("ilias.php");
                                exit;
                        }
                }
                if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
                {
                        $_GET["cmd"] = "frameset";
                        $_GET["target"] = "";
                        $_GET["ref_id"] = ROOT_FOLDER_ID;
                        sendInfo(sprintf($lng->txt("msg_no_perm_read_item"),
                                ilObject::_lookupTitle($glo_id)), true);
                        include("repository.php");
                        exit;
                }


                $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
        }

Here is the call graph for this function:

ilGlossaryTermGUI::addDefinition (  ) 

add definition

Definition at line 474 of file class.ilGlossaryTermGUI.php.

References $_GET, displayLocator(), ilUtil::getImagePath(), getTemplate(), and setTabs().

        {

                $this->getTemplate();
                $this->displayLocator();
                $this->setTabs();
                $this->tpl->setVariable("HEADER", $this->lng->txt("cont_term").": ".$this->term->getTerm());
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.gif"));

                $term_id = $_GET["term_id"];

                $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.obj_edit.html");
                $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
                $this->tpl->setVariable("TXT_HEADER", $this->lng->txt("gdf_new"));
                $this->tpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
                $this->tpl->setVariable("TXT_SUBMIT", $this->lng->txt("gdf_add"));
                $this->tpl->setVariable("TXT_TITLE", $this->lng->txt("title"));
                $this->tpl->setVariable("TXT_DESC", $this->lng->txt("description"));
                $this->tpl->setVariable("CMD_SUBMIT", "saveDefinition");
                //$this->tpl->setVariable("TARGET", $this->getTargetFrame("save"));
                $this->tpl->setVariable("TXT_REQUIRED_FLD", $this->lng->txt("required_field"));
                $this->tpl->parseCurrentBlock();

        }

Here is the call graph for this function:

ilGlossaryTermGUI::cancel (  ) 

cancel adding definition

Definition at line 502 of file class.ilGlossaryTermGUI.php.

References sendInfo().

        {
                sendInfo($this->lng->txt("msg_cancel"),true);
                $this->ctrl->redirect($this, "listDefinitions");
        }

Here is the call graph for this function:

ilGlossaryTermGUI::cancelDefinitionDeletion (  ) 

Definition at line 435 of file class.ilGlossaryTermGUI.php.

        {
                $this->ctrl->redirect($this, "listDefinitions");
        }

ilGlossaryTermGUI::confirmDefinitionDeletion (  ) 

deletion confirmation screen

Definition at line 389 of file class.ilGlossaryTermGUI.php.

References $_GET, $output, displayLocator(), ilObjStyleSheet::getContentStylePath(), ilUtil::getImagePath(), ilObjStyleSheet::getSyntaxStylePath(), getTemplate(), sendInfo(), and setTabs().

        {
                $this->getTemplate();
                $this->displayLocator();
                $this->setTabs();

                // content style
                $this->tpl->setCurrentBlock("ContentStyle");
                $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
                        ilObjStyleSheet::getContentStylePath(0));
                $this->tpl->parseCurrentBlock();

                // syntax style
                $this->tpl->setCurrentBlock("SyntaxStyle");
                $this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
                        ilObjStyleSheet::getSyntaxStylePath());
                $this->tpl->parseCurrentBlock();

                $this->tpl->setVariable("HEADER",
                        $this->lng->txt("cont_term").": ".$this->term->getTerm());
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.gif"));

                $this->tpl->addBlockfile("ADM_CONTENT", "def_list", "tpl.glossary_definition_delete.html", true);
                sendInfo($this->lng->txt("info_delete_sure"));

                $this->tpl->setVariable("TXT_TERM", $this->term->getTerm());

                $definition =& new ilGlossaryDefinition($_GET["def"]);
                $page =& new ilPageObject("gdf", $definition->getId());
                $page_gui =& new ilPageObjectGUI($page);
                $page_gui->setTemplateOutput(false);
                $page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=".$_GET["ref_id"]);
                $output = $page_gui->preview();

                $this->tpl->setCurrentBlock("definition");
                $this->tpl->setVariable("PAGE_CONTENT", $output);
                $this->tpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
                $this->tpl->setVariable("LINK_CANCEL",
                        $this->ctrl->getLinkTarget($this, "cancelDefinitionDeletion"));
                $this->tpl->setVariable("TXT_CONFIRM", $this->lng->txt("confirm"));
                $this->ctrl->setParameter($this, "def", $definition->getId());
                $this->tpl->setVariable("LINK_CONFIRM",
                        $this->ctrl->getLinkTarget($this, "deleteDefinition"));
                $this->tpl->parseCurrentBlock();
        }

Here is the call graph for this function:

ilGlossaryTermGUI::create (  ) 

form for new content object creation

Definition at line 108 of file class.ilGlossaryTermGUI.php.

References $_GET, $_SESSION, $lang, displayLocator(), formSelect(), ilUtil::getImagePath(), ilMetaData::getLanguages(), getTemplate(), and setTabs().

        {
                global $ilUser;

                $this->getTemplate();
                $this->displayLocator();
                $this->tpl->setVariable("HEADER", $this->lng->txt("cont_new_term"));
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.gif"));
                $this->setTabs();

                // load template for table
                $this->tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.glossary_term_new.html", true);
                $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
                $this->tpl->setVariable("TXT_ACTION", $this->lng->txt("cont_new_term"));
                $this->tpl->setVariable("TXT_TERM", $this->lng->txt("cont_term"));
                $this->tpl->setVariable("INPUT_TERM", "term");
                $this->tpl->setVariable("TXT_LANGUAGE", $this->lng->txt("language"));
                $lang = ilMetaData::getLanguages();

                if ($_SESSION["il_text_lang_".$_GET["ref_id"]] != "")
                {
                        $s_lang = $_SESSION["il_text_lang_".$_GET["ref_id"]];
                }
                else
                {
                        $s_lang = $ilUser->getLanguage();
                }

                $select_language = ilUtil::formSelect ($s_lang, "term_language",$lang,false,true);
                $this->tpl->setVariable("SELECT_LANGUAGE", $select_language);
                $this->tpl->setVariable("BTN_NAME", "saveTerm");
                $this->tpl->setVariable("BTN_TEXT", $this->lng->txt("save"));
        }

Here is the call graph for this function:

ilGlossaryTermGUI::deleteDefinition (  ) 

Definition at line 441 of file class.ilGlossaryTermGUI.php.

References $_GET.

        {
                $definition =& new ilGlossaryDefinition($_GET["def"]);
                $definition->delete();
                $this->ctrl->redirect($this, "listDefinitions");
        }

ilGlossaryTermGUI::displayLocator (  ) 

display locator

Definition at line 554 of file class.ilGlossaryTermGUI.php.

Referenced by addDefinition(), confirmDefinitionDeletion(), create(), editTerm(), and listDefinitions().

        {
                require_once ("content/classes/class.ilGlossaryLocatorGUI.php");
                $gloss_loc =& new ilGlossaryLocatorGUI();
                $gloss_loc->setTerm($this->term);
                $gloss_loc->setGlossary($this->glossary);
                //$gloss_loc->setDefinition($this->definition);
                $gloss_loc->display();
        }

Here is the caller graph for this function:

ilGlossaryTermGUI::editTerm (  ) 

edit term

Definition at line 162 of file class.ilGlossaryTermGUI.php.

References $lang, displayLocator(), formSelect(), ilUtil::getImagePath(), ilMetaData::getLanguages(), getTemplate(), and setTabs().

        {
                //$this->displayLocator();
                $this->getTemplate();
                $this->displayLocator();
                $this->setTabs();
                //$this->displayLocator();
                $this->tpl->setVariable("HEADER", $this->lng->txt("cont_term").": ".$this->term->getTerm());
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.gif"));

                // load template for table
                $this->tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.glossary_term_edit.html", true);
                $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
                $this->tpl->setVariable("TXT_ACTION", $this->lng->txt("cont_edit_term"));
                $this->tpl->setVariable("TXT_TERM", $this->lng->txt("cont_term"));
                $this->tpl->setVariable("INPUT_TERM", "term");
                $this->tpl->setVariable("VALUE_TERM", htmlspecialchars($this->term->getTerm()));
                $this->tpl->setVariable("TXT_LANGUAGE", $this->lng->txt("language"));
                $lang = ilMetaData::getLanguages();
                $select_language = ilUtil::formSelect ($this->term->getLanguage(),"term_language",$lang,false,true);
                $this->tpl->setVariable("SELECT_LANGUAGE", $select_language);
                $this->tpl->setVariable("BTN_NAME", "updateTerm");
                $this->tpl->setVariable("BTN_TEXT", $this->lng->txt("save"));
        }

Here is the call graph for this function:

ilGlossaryTermGUI::executeCommand (  ) 

execute command

Definition at line 68 of file class.ilGlossaryTermGUI.php.

References $cmd.

        {
                $next_class = $this->ctrl->getNextClass($this);
                $cmd = $this->ctrl->getCmd();

                switch ($next_class)
                {

                        case "iltermdefinitioneditorgui":
                                //$this->ctrl->setReturn($this, "listDefinitions");
                                $def_edit =& new ilTermDefinitionEditorGUI();
                                //$ret =& $def_edit->executeCommand();
                                $ret =& $this->ctrl->forwardCommand($def_edit);
                                break;

                        default:
                                $ret =& $this->$cmd();
                                break;
                }
        }

ilGlossaryTermGUI::getInternalLinks (  ) 

get internal links

Definition at line 261 of file class.ilGlossaryTermGUI.php.

References $key, and ilGlossaryDefinition::getDefinitionList().

        {
                require_once("content/classes/class.ilGlossaryDefinition.php");
                require_once("content/classes/Pages/class.ilPageObjectGUI.php");

                $defs = ilGlossaryDefinition::getDefinitionList($this->term->getId());

                $term_links = array();
                for($j=0; $j<count($defs); $j++)
                {
                        $def = $defs[$j];
                        $page =& new ilPageObject("gdf", $def["id"]);
                        $page->buildDom();
                        $page_links = $page->getInternalLinks();
                        foreach($page_links as $key => $page_link)
                        {
                                $term_links[$key] = $page_link;
                        }
                }

                return $term_links;
        }

Here is the call graph for this function:

ilGlossaryTermGUI::getLinkXML (  ) 

Definition at line 100 of file class.ilGlossaryTermGUI.php.

Referenced by output().

        {
                return $this->link_xml;
        }

Here is the caller graph for this function:

ilGlossaryTermGUI::getTabs ( &$  tabs_gui  ) 

get tabs

Definition at line 568 of file class.ilGlossaryTermGUI.php.

References $_GET.

Referenced by setTabs().

        {
//echo ":".$_GET["term_id"].":";
                if ($_GET["term_id"] != "")
                {
                        $tabs_gui->addTarget("properties",
                                $this->ctrl->getLinkTarget($this, "editTerm"), array("editTerm"),
                                get_class($this));
                                
                        $tabs_gui->addTarget("cont_definitions",
                                $this->ctrl->getLinkTarget($this, "listDefinitions"),
                                "listDefinitions",
                                get_class($this));              
                }

                // back to glossary
                $tabs_gui->setBackTarget($this->lng->txt("glossary"),
                        $this->ctrl->getLinkTargetByClass("ilobjglossarygui", "listTerms"));
        }

Here is the caller graph for this function:

ilGlossaryTermGUI::getTemplate (  ) 

get template

Definition at line 528 of file class.ilGlossaryTermGUI.php.

References sendInfo().

Referenced by addDefinition(), confirmDefinitionDeletion(), create(), editTerm(), and listDefinitions().

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

Here is the call graph for this function:

Here is the caller graph for this function:

ilGlossaryTermGUI::ilGlossaryTermGUI ( a_id = 0  ) 

Constructor public.

Definition at line 49 of file class.ilGlossaryTermGUI.php.

References $ilCtrl, $ilias, $lng, and $tpl.

        {
                global $lng, $ilias, $tpl, $ilCtrl;

                $this->lng =& $lng;
                $this->ilias =& $ilias;
                $this->tpl =& $tpl;
                $this->ctrl =& $ilCtrl;
                $this->ctrl->saveParameter($this, array("term_id"));

                if($a_id != 0)
                {
                        $this->term =& new ilGlossaryTerm($a_id);
                }
        }

ilGlossaryTermGUI::listDefinitions (  ) 

list definitions

Definition at line 287 of file class.ilGlossaryTermGUI.php.

References $_GET, $output, displayLocator(), ilObjStyleSheet::getContentStylePath(), ilGlossaryDefinition::getDefinitionList(), ilUtil::getImagePath(), ilObjStyleSheet::getSyntaxStylePath(), getTemplate(), and setTabs().

        {
                $this->getTemplate();
                $this->displayLocator();
                $this->setTabs();

                require_once("content/classes/Pages/class.ilPageObjectGUI.php");

                // content style
                $this->tpl->setCurrentBlock("ContentStyle");
                $this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
                        ilObjStyleSheet::getContentStylePath(0));
                $this->tpl->parseCurrentBlock();

                // syntax style
                $this->tpl->setCurrentBlock("SyntaxStyle");
                $this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
                        ilObjStyleSheet::getSyntaxStylePath());
                $this->tpl->parseCurrentBlock();

                // load template for table
                $this->tpl->addBlockfile("ADM_CONTENT", "def_list", "tpl.glossary_definition_list.html", true);
                //$this->tpl->addBlockfile("CONTENT", "def_list", "tpl.glossary_definition_list.html", true);
                //sendInfo();
                $this->tpl->addBlockfile("STATUSLINE", "statusline", "tpl.statusline.html");
                $this->tpl->setVariable("HEADER",
                        $this->lng->txt("cont_term").": ".$this->term->getTerm());
                $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.gif"));

                $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));

                $this->tpl->setCurrentBlock("add_def");
                $this->tpl->setVariable("TXT_ADD_DEFINITION",
                        $this->lng->txt("cont_add_definition"));
                $this->tpl->setVariable("BTN_ADD", "addDefinition");
                $this->tpl->parseCurrentBlock();
                $this->tpl->setCurrentBlock("def_list");

                $defs = ilGlossaryDefinition::getDefinitionList($_GET["term_id"]);

                $this->tpl->setVariable("TXT_TERM", $this->term->getTerm());

                for($j=0; $j<count($defs); $j++)
                {
                        $def = $defs[$j];
                        $page =& new ilPageObject("gdf", $def["id"]);
                        $page_gui =& new ilPageObjectGUI($page);
                        $page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"]);
                        $page_gui->setTemplateOutput(false);
                        $output = $page_gui->preview();

                        if (count($defs) > 1)
                        {
                                $this->tpl->setCurrentBlock("definition_header");
                                                $this->tpl->setVariable("TXT_DEFINITION",
                                $this->lng->txt("cont_definition")." ".($j+1));
                                $this->tpl->parseCurrentBlock();
                        }

                        if ($j > 0)
                        {
                                $this->tpl->setCurrentBlock("up");
                                $this->tpl->setVariable("TXT_UP", $this->lng->txt("up"));
                                $this->ctrl->setParameter($this, "def", $def["id"]);
                                $this->tpl->setVariable("LINK_UP",
                                        $this->ctrl->getLinkTarget($this, "moveUp"));
                                $this->tpl->parseCurrentBlock();
                        }

                        if ($j+1 < count($defs))
                        {
                                $this->tpl->setCurrentBlock("down");
                                $this->tpl->setVariable("TXT_DOWN", $this->lng->txt("down"));
                                $this->ctrl->setParameter($this, "def", $def["id"]);
                                $this->tpl->setVariable("LINK_DOWN",
                                        $this->ctrl->getLinkTarget($this, "moveDown"));
                                $this->tpl->parseCurrentBlock();
                        }
                        $this->tpl->setCurrentBlock("submit_btns");
                        $this->tpl->setVariable("TXT_EDIT", $this->lng->txt("edit"));
                        $this->ctrl->setParameter($this, "def", $def["id"]);
                        $this->ctrl->setParameterByClass("ilTermDefinitionEditorGUI", "def", $def["id"]);
                        $this->tpl->setVariable("LINK_EDIT",
                                $this->ctrl->getLinkTargetByClass(array("ilTermDefinitionEditorGUI", "ilPageObjectGUI"), "view"));
                        $this->tpl->setVariable("TXT_DELETE", $this->lng->txt("delete"));
                        $this->tpl->setVariable("LINK_DELETE",
                                $this->ctrl->getLinkTarget($this, "confirmDefinitionDeletion"));
                        $this->tpl->parseCurrentBlock();

                        $this->tpl->setCurrentBlock("definition");
                        $this->tpl->setVariable("PAGE_CONTENT", $output);
                        $this->tpl->parseCurrentBlock();
                }
                //$this->tpl->setCurrentBlock("def_list");
                //$this->tpl->parseCurrentBlock();

        }

Here is the call graph for this function:

ilGlossaryTermGUI::moveDown (  ) 

move definition downwards

Definition at line 463 of file class.ilGlossaryTermGUI.php.

References $_GET.

        {
                $definition =& new ilGlossaryDefinition($_GET["def"]);
                $definition->moveDown();
                $this->ctrl->redirect($this, "listDefinitions");
        }

ilGlossaryTermGUI::moveUp (  ) 

move definition upwards

Definition at line 452 of file class.ilGlossaryTermGUI.php.

References $_GET.

        {
                $definition =& new ilGlossaryDefinition($_GET["def"]);
                $definition->moveUp();
                $this->ctrl->redirect($this, "listDefinitions");
        }

ilGlossaryTermGUI::output ( a_offline = false,
dir = "" 
)

output glossary term definitions

used in ilLMPresentationGUI->ilGlossary()

Definition at line 205 of file class.ilGlossaryTermGUI.php.

References $_GET, $output, ilGlossaryDefinition::getDefinitionList(), and getLinkXML().

        {
                require_once("content/classes/class.ilGlossaryDefinition.php");
                require_once("content/classes/Pages/class.ilPageObjectGUI.php");

                $defs = ilGlossaryDefinition::getDefinitionList($this->term->getId());

                $this->tpl->setVariable("TXT_TERM", $this->term->getTerm());

                for($j=0; $j<count($defs); $j++)
                {
                        $def = $defs[$j];
                        $page =& new ilPageObject("gdf", $def["id"]);
                        $page_gui =& new ilPageObjectGUI($page);
                        $page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"]);
                        if (!$a_offline)
                        {
                                $page_gui->setFullscreenLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"] . "&amp;cmd=fullscreen");
                        }
                        else
                        {
                                $page_gui->setFullscreenLink("fullscreen.html");        // id is set by xslt
                        }
                        $page_gui->setFileDownloadLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"] . "&amp;cmd=downloadFile");

                        if (!$a_offline)
                        {
                                $page_gui->setOutputMode("presentation");
                        }
                        else
                        {
                                $page_gui->setOutputMode("offline");
                        }

                        //$page_gui->setOutputMode("edit");
                        //$page_gui->setPresentationTitle($this->term->getTerm());
                        $page_gui->setLinkXML($this->getLinkXML());
                        $page_gui->setTemplateOutput(false);
                        $output = $page_gui->presentation($page_gui->getOutputMode());

                        if (count($defs) > 1)
                        {
                                $this->tpl->setCurrentBlock("definition_header");
                                                $this->tpl->setVariable("TXT_DEFINITION",
                                $this->lng->txt("cont_definition")." ".($j+1));
                                $this->tpl->parseCurrentBlock();
                        }

                        $this->tpl->setCurrentBlock("definition");
                        $this->tpl->setVariable("PAGE_CONTENT", $output);
                }
        }

Here is the call graph for this function:

ilGlossaryTermGUI::saveDefinition (  ) 

save definition

Definition at line 511 of file class.ilGlossaryTermGUI.php.

References $_GET, $_POST, and ilUtil::stripSlashes().

        {
                //$meta_gui =& new ilMetaDataGUI();
                //$meta_data =& $meta_gui->create();
                $def =& new ilGlossaryDefinition();
                $def->setTermId($_GET["term_id"]);
                $def->setTitle(ilUtil::stripSlashes($_POST["Fobject"]["title"]));#"content object ".$newObj->getId());          // set by meta_gui->save
                $def->setDescription(ilUtil::stripSlashes($_POST["Fobject"]["desc"]));  // set by meta_gui->save
                $def->create();

                $this->ctrl->redirect($this, "listDefinitions");
        }

Here is the call graph for this function:

ilGlossaryTermGUI::saveTerm (  ) 

save term

Definition at line 145 of file class.ilGlossaryTermGUI.php.

References $_POST, $_SESSION, $term, and ilUtil::stripSlashes().

        {
                $term =& new ilGlossaryTerm();
                $term->setGlossary($this->glossary);
                $term->setTerm(ilUtil::stripSlashes($_POST["term"]));
                $term->setLanguage($_POST["term_language"]);
                $_SESSION["il_text_lang_".$_GET["ref_id"]] = $_POST["term_language"];
                $term->create();

                sendinfo($this->lng->txt("cont_added_term"),true);
                $this->ctrl->returnToParent($this);
        }

Here is the call graph for this function:

ilGlossaryTermGUI::setGlossary ( &$  a_glossary  ) 

Definition at line 90 of file class.ilGlossaryTermGUI.php.

        {
                $this->glossary =& $a_glossary;
        }

ilGlossaryTermGUI::setLinkXML ( a_link_xml  ) 

Definition at line 95 of file class.ilGlossaryTermGUI.php.

        {
                $this->link_xml = $a_link_xml;
        }

ilGlossaryTermGUI::setTabs (  ) 

output tabs

Definition at line 538 of file class.ilGlossaryTermGUI.php.

References getTabs().

Referenced by addDefinition(), confirmDefinitionDeletion(), create(), editTerm(), and listDefinitions().

        {
                global $ilTabs;

                // catch feedback message
                #include_once("classes/class.ilTabsGUI.php");
                #$tabs_gui =& new ilTabsGUI();
                $this->getTabs($ilTabs);

                #$this->tpl->setVariable("TABS", $tabs_gui->getHTML());

        }

Here is the call graph for this function:

Here is the caller graph for this function:

ilGlossaryTermGUI::updateTerm (  ) 

update term

Definition at line 191 of file class.ilGlossaryTermGUI.php.

References $_POST, and ilUtil::stripSlashes().

        {
                $this->term->setTerm(ilUtil::stripSlashes($_POST["term"]));
                $this->term->setLanguage($_POST["term_language"]);
                $this->term->update();
                sendinfo($this->lng->txt("msg_obj_modified"),true);
                $this->ctrl->redirect($this, "editTerm");
        }

Here is the call graph for this function:


Field Documentation

ilGlossaryTermGUI::$glossary

Definition at line 41 of file class.ilGlossaryTermGUI.php.

ilGlossaryTermGUI::$ilias

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

Referenced by ilGlossaryTermGUI().

ilGlossaryTermGUI::$link_xml

Definition at line 43 of file class.ilGlossaryTermGUI.php.

ilGlossaryTermGUI::$lng

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

Referenced by _goto(), and ilGlossaryTermGUI().

ilGlossaryTermGUI::$term

Definition at line 42 of file class.ilGlossaryTermGUI.php.

Referenced by saveTerm().

ilGlossaryTermGUI::$tpl

Definition at line 40 of file class.ilGlossaryTermGUI.php.

Referenced by ilGlossaryTermGUI().


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