ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilObjGlossaryGUI Class Reference

Class ilGlossaryGUI. More...

+ Inheritance diagram for ilObjGlossaryGUI:
+ Collaboration diagram for ilObjGlossaryGUI:

Public Member Functions

 ilObjGlossaryGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
executeCommand ()
 execute command
 assignObject ()
 initCreateForm ($a_new_type)
 Init object creation form.
 importObject ()
 saveObject ()
 save new content object to db
 importFileObject ()
 display status information or report errors messages in case of error
 showInfoScreen ()
 Show info screen.
 addUsagesToInfo ($info, $glo_id)
 Add usages to info.
 viewObject ()
 list childs of current object
 properties ()
 edit properties of object (admin form)
 initSettingsForm ($a_mode="edit")
 Init settings form.
 saveProperties ()
 save properties
 frameset ()
 glossary edit frameset
 quickList ()
 quick term list
 listTerms ()
 list terms
 actTaxonomy ()
 Show Taxonomy.
 deactTaxonomy ()
 Hide Taxonomy.
 showActions ($a_actions)
 show possible action (form buttons)
 addTerm ()
 add term
 moveDefinitionUp ()
 move a definiton up
 moveDefinitionDown ()
 move a definiton down
 confirmDefinitionDeletion ()
 deletion confirmation screen
 cancelDefinitionDeletion ()
 deleteDefinition ()
 editTerm ()
 edit term
 updateTerm ()
 update term
 export ()
 export content object
 exportHTML ()
 create html package
 publishExportFile ()
 download export file
 viewExportLog ()
 confirmTermDeletion ()
 confirm term deletion
 cancelTermDeletion ()
 cancel deletion of object
 deleteTerms ()
 delete selected terms
 setLocator ($a_tree="", $a_id="")
 set Locator
 view ()
 view content
 create ()
 create new (subobject) in glossary
 saveTerm ()
 addDefinition ()
 add definition
 getTemplate ()
 setTabs ()
 output tabs
 getTabs (&$tabs_gui)
 get tabs
 setSettingsSubTabs ($a_active)
 Set sub tabs.
 _goto ($a_target)
 redirect script
 applyFilter ()
 Apply filter.
 resetFilter ()
 Reset filter (note: this function existed before data table filter has been introduced.
 setContentStyleSheet ($a_tpl=null)
 Set content style sheet.
 editStyleProperties ()
 Edit style properties.
 initStylePropertiesForm ()
 Init style properties form.
 createStyle ()
 Create Style.
 editStyle ()
 Edit Style.
 deleteStyle ()
 Delete Style.
 saveStyleSettings ()
 Save style settings.
 getPublicAccessColValue ($a_type, $a_file)
 Get public access value for export table.
 showTaxonomy ()
 Show taxonomy.
- Public Member Functions inherited from ilObjectGUI
 ilObjectGUI ($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=true)
 Constructor public.
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not)
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui
 getCreationMode ()
 get creation mode
 getAdminTabs (&$tabs_gui)
 administration tabs show only permissions and trash folder
 getHTML ()
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled
 cancelDeleteObject ()
 cancel deletion of object
 cancelObject ($in_rep=false)
 cancel action and go back to previous page public
 createObject ()
 create new object form
 cancelCreation ()
 cancel create action and go back to repository parent
 editObject ()
 edit object
 updateObject ()
 updates object entry in object_data
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g.
 isVisible ($a_ref_id, $a_type)
 deleteObject ($a_error=false)
 Display deletion confirmation screen.
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI.

Data Fields

 $admin_tabs
 $mode
 $term
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 $ilias
 $objDefinition
 $tpl
 $tree
 $lng
 $data
 $object
 $ref_id
 $obj_id
 $maxcount
 $formaction
 $return_location
 $target_frame
 $tab_target_script
 $actions
 $sub_objects
 $omit_locator = false
const CFORM_NEW = 1
const CFORM_IMPORT = 2
const CFORM_CLONE = 3

Protected Member Functions

 initCreationForms ($a_new_type)
 Init creation froms.
- Protected Member Functions inherited from ilObjectGUI
 prepareOutput ()
 prepare output
 setTitleAndDescription ()
 called by prepare output
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu.
 insertHeaderAction ($a_list_gui)
 Insert header action into main template.
 addHeaderAction ()
 Add header action menu.
 redrawHeaderActionObject ()
 Ajax call: redraw action header only.
 showMountWebfolderIcon ()
 setAdminTabs ()
 set admin tabs public
 setLocator ()
 set Locator
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded)
 omitLocator ($a_omit=true)
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded)
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion)
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types.
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates.
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen.
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position.
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook.
 initEditForm ()
 Init object edit form.
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form.
 getEditFormValues ()
 Get values for edit form.
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields.
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object.
 afterUpdate ()
 Post (successful) object update hook.
 initImportForm ($a_new_type)
 Init object import form.
 importFileObject ($parent_id=null)
 Import.
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook.
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g.
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g.
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu)
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl.
 getTitlesByRefId ($a_ref_ids)
 get Titles of objects this method is used for error messages in methods cut/copy/paste
 __showButton ($a_cmd, $a_text, $a_target= '')
 hitsperpageObject ()
__initTableGUI ()
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning.
 getCenterColumnHTML ()
 Get center column.
 getRightColumnHTML ()
 Display right column.
 setColumnSettings ($column_gui)
 May be overwritten in subclasses.
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error.
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission.
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files.
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting.

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root.
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root.

Detailed Description

Member Function Documentation

ilObjGlossaryGUI::_goto (   $a_target)

redirect script

Parameters
string$a_target

Definition at line 1597 of file class.ilObjGlossaryGUI.php.

References $_GET, $ilErr, ilObjectGUI\$lng, ilObjectGUI\_gotoRepositoryRoot(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), exit, and ilUtil\sendFailure().

{
global $rbacsystem, $ilErr, $lng, $ilAccess;
if ($ilAccess->checkAccess("read", "", $a_target))
{
$_GET["ref_id"] = $a_target;
$_GET["baseClass"] = "ilGlossaryPresentationGUI";
include("ilias.php");
}
else if ($ilAccess->checkAccess("visible", "", $a_target))
{
$_GET["ref_id"] = $a_target;
$_GET["cmd"] = "infoScreen";
$_GET["baseClass"] = "ilGlossaryPresentationGUI";
include("ilias.php");
}
else if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID))
{
ilUtil::sendFailure(sprintf($lng->txt("msg_no_perm_read_item"),
}
$ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::actTaxonomy ( )

Show Taxonomy.

Parameters
@return

Definition at line 991 of file class.ilObjGlossaryGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->setParameter($this, "show_tax", 1);
$ilCtrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::addDefinition ( )

add definition

Definition at line 1431 of file class.ilObjGlossaryGUI.php.

References $_GET, $ilCtrl, $term, ilGlossaryTerm\_lookGlossaryID(), ilUtil\sendFailure(), and ilUtil\stripSlashes().

{
global $ilCtrl;
$term_id = (int) $_GET["term_id"];
include_once("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
$term_glo_id = ilGlossaryTerm::_lookGlossaryID((int) $term_id);
if ($term_glo_id != $this->object->getId())
{
ilUtil::sendFailure($this->lng->txt("glo_term_must_belong_to_glo"), true);
$ilCtrl->redirect($this, "listTerms");
}
// add term
include_once ("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
$term = new ilGlossaryTerm($term_id);
// add first definition
$def = new ilGlossaryDefinition();
$def->setTermId($term->getId());
$def->setTitle(ilUtil::stripSlashes($term->getTerm()));
$def->create();
$this->ctrl->setParameterByClass("ilglossarydefpagegui", "term_id", $term->getId());
$this->ctrl->setParameterByClass("ilglossarydefpagegui", "def", $def->getId());
$this->ctrl->redirectByClass(array("ilglossarytermgui",
"iltermdefinitioneditorgui", "ilglossarydefpagegui"), "edit");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::addTerm ( )

add term

Definition at line 1050 of file class.ilObjGlossaryGUI.php.

References $_POST, $_SESSION, $ilCtrl, ilObjectGUI\$lng, $term, ilUtil\sendFailure(), and ilUtil\stripSlashes().

{
global $lng, $ilCtrl;
if (trim($_POST["new_term"]) == "")
{
ilUtil::sendFailure($lng->txt("cont_please_enter_a_term"), true);
$ilCtrl->redirect($this, "listTerms");
}
// add term
include_once ("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
$term->setGlossary($this->object);
$term->setTerm(ilUtil::stripSlashes($_POST["new_term"]));
$term->setLanguage($_POST["term_language"]);
$_SESSION["il_text_lang_".$_GET["ref_id"]] = $_POST["term_language"];
$term->create();
// add first definition
$def =& new ilGlossaryDefinition();
$def->setTermId($term->getId());
$def->setTitle(ilUtil::stripSlashes($_POST["new_term"]));
$def->create();
$this->ctrl->setParameterByClass("ilglossarydefpagegui", "term_id", $term->getId());
$this->ctrl->setParameterByClass("ilglossarydefpagegui", "def", $def->getId());
$this->ctrl->redirectByClass(array("ilglossarytermgui",
"iltermdefinitioneditorgui", "ilglossarydefpagegui"), "edit");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::addUsagesToInfo (   $info,
  $glo_id 
)

Add usages to info.

Parameters
@return

Definition at line 494 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\$lng, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupTitle(), and ilObjSAHSLearningModule\getScormModulesForGlossary().

Referenced by ilGlossaryPresentationGUI\outputInfoScreen(), and showInfoScreen().

{
global $lng, $ilAccess;
$info->addSection($lng->txt("glo_usages"));
include_once("./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php");
foreach ($sms as $sm)
{
$link = false;
foreach ($refs as $ref)
{
if ($link === false)
{
if ($ilAccess->checkAccess("write", "", $ref))
{
include_once("./Services/Link/classes/class.ilLink.php");
$link = ilLink::_getLink($ref,'sahs');
}
}
}
$entry = ilObject::_lookupTitle($sm);
if ($link !== false)
{
$entry = "<a href='".$link."' target='_top'>".$entry."</a>";
}
$info->addProperty($lng->txt("obj_sahs"), $entry);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::applyFilter ( )

Apply filter.

Definition at line 1629 of file class.ilObjGlossaryGUI.php.

References listTerms().

{
include_once("./Modules/Glossary/classes/class.ilTermListTableGUI.php");
$prtab = new ilTermListTableGUI($this, "listTerms", $this->tax_node);
$prtab->resetOffset();
$prtab->writeFilterToSession();
$this->listTerms();
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::assignObject ( )

Reimplemented from ilObjectGUI.

Definition at line 251 of file class.ilObjGlossaryGUI.php.

{
include_once("./Modules/Glossary/classes/class.ilObjGlossary.php");
$this->object =& new ilObjGlossary($this->id, true);
}
ilObjGlossaryGUI::cancelDefinitionDeletion ( )

Definition at line 1163 of file class.ilObjGlossaryGUI.php.

{
$this->ctrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::cancelTermDeletion ( )

cancel deletion of object

public

Definition at line 1343 of file class.ilObjGlossaryGUI.php.

{
$this->ctrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::confirmDefinitionDeletion ( )

deletion confirmation screen

Definition at line 1110 of file class.ilObjGlossaryGUI.php.

References $_GET, $ilCtrl, ilObjectGUI\$lng, $term, ilGlossaryTerm\getNumberOfUsages(), ilObjStyleSheet\getSyntaxStylePath(), setContentStyleSheet(), and ilPageObjectGUI\setTemplateOutput().

{
global $ilCtrl, $lng;
//$this->getTemplate();
//$this->displayLocator();
//$this->setTabs();
$term = new ilGlossaryTerm($this->term_id);
$add = "";
$nr = ilGlossaryTerm::getNumberOfUsages($this->term_id);
if ($nr > 0)
{
$ilCtrl->setParameterByClass("ilglossarytermgui",
"term_id", $this->term_id);
$link = "[<a href='".
$ilCtrl->getLinkTargetByClass("ilglossarytermgui", "listUsages").
"'>".$lng->txt("glo_list_usages")."</a>]";
$add = "<br/>".sprintf($lng->txt("glo_term_is_used_n_times"), $nr)." ".$link;
}
include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
$cgui = new ilConfirmationGUI();
$cgui->setHeaderText($this->lng->txt("info_delete_sure").$add);
$cgui->setFormAction($this->ctrl->getFormAction($this));
$cgui->setCancel($this->lng->txt("cancel"), "cancelDefinitionDeletion");
$cgui->setConfirm($this->lng->txt("confirm"), "deleteDefinition");
// content style
$this->setContentStyleSheet($this->tpl);
// syntax style
$this->tpl->setCurrentBlock("SyntaxStyle");
$this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
$this->tpl->parseCurrentBlock();
$definition = new ilGlossaryDefinition($_GET["def"]);
$page_gui = new ilGlossaryDefPageGUI($definition->getId());
$page_gui->setTemplateOutput(false);
$page_gui->setStyleId($this->object->getStyleSheetId());
$page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"]);
$page_gui->setFileDownloadLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"]);
$page_gui->setFullscreenLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$_GET["ref_id"]);
$output = $page_gui->preview();
$cgui->addItem("def", $_GET["def"], $term->getTerm().$output);
$this->tpl->setContent($cgui->getHTML());
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::confirmTermDeletion ( )

confirm term deletion

Definition at line 1284 of file class.ilObjGlossaryGUI.php.

References $_POST, $ilCtrl, ilObjectGUI\$lng, $term, ilGlossaryTerm\_lookGlossaryID(), ilGlossaryTerm\getNumberOfUsages(), and ilUtil\sendFailure().

{
global $ilCtrl, $lng;
//$this->prepareOutput();
if (!isset($_POST["id"]))
{
ilUtil::sendFailure($this->lng->txt("no_checkbox"), true);
$ilCtrl->redirect($this, "listTerms");
}
// check ids
include_once("./Modules/Glossary/classes/class.ilGlossaryTerm.php");
foreach ($_POST["id"] as $term_id)
{
$term_glo_id = ilGlossaryTerm::_lookGlossaryID((int) $term_id);
if ($term_glo_id != $this->object->getId())
{
ilUtil::sendFailure($this->lng->txt("glo_term_must_belong_to_glo"), true);
$ilCtrl->redirect($this, "listTerms");
}
}
// display confirmation message
include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
$cgui = new ilConfirmationGUI();
$cgui->setFormAction($this->ctrl->getFormAction($this));
$cgui->setHeaderText($this->lng->txt("info_delete_sure"));
$cgui->setCancel($this->lng->txt("cancel"), "cancelTermDeletion");
$cgui->setConfirm($this->lng->txt("confirm"), "deleteTerms");
foreach($_POST["id"] as $id)
{
$term = new ilGlossaryTerm($id);
$add = "";
if ($nr > 0)
{
$ilCtrl->setParameterByClass("ilglossarytermgui",
"term_id", $id);
$link = "[<a href='".
$ilCtrl->getLinkTargetByClass("ilglossarytermgui", "listUsages").
"'>".$lng->txt("glo_list_usages")."</a>]";
$add = "<div class='small'>".
sprintf($lng->txt("glo_term_is_used_n_times"), $nr)." ".$link."</div>";
}
$cgui->addItem("id[]", $id, $term->getTerm().$add);
}
$this->tpl->setContent($cgui->getHTML());
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::create ( )

create new (subobject) in glossary

Definition at line 1404 of file class.ilObjGlossaryGUI.php.

References $_POST.

{
switch($_POST["new_type"])
{
case "term":
$term_gui =& new ilGlossaryTermGUI();
$term_gui->create();
break;
}
}
ilObjGlossaryGUI::createStyle ( )

Create Style.

Definition at line 1768 of file class.ilObjGlossaryGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->redirectByClass("ilobjstylesheetgui", "create");
}
ilObjGlossaryGUI::deactTaxonomy ( )

Hide Taxonomy.

Parameters
@return

Definition at line 1005 of file class.ilObjGlossaryGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->setParameter($this, "show_tax", "");
$ilCtrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::deleteDefinition ( )

Definition at line 1169 of file class.ilObjGlossaryGUI.php.

References $_REQUEST.

{
$definition =& new ilGlossaryDefinition($_REQUEST["def"]);
$definition->delete();
$this->ctrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::deleteStyle ( )

Delete Style.

Definition at line 1788 of file class.ilObjGlossaryGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->redirectByClass("ilobjstylesheetgui", "delete");
}
ilObjGlossaryGUI::deleteTerms ( )

delete selected terms

Definition at line 1351 of file class.ilObjGlossaryGUI.php.

References $_POST, and $term.

{
foreach($_POST["id"] as $id)
{
$term = new ilGlossaryTerm($id);
$term->delete();
}
$this->ctrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::editStyle ( )

Edit Style.

Definition at line 1778 of file class.ilObjGlossaryGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->redirectByClass("ilobjstylesheetgui", "edit");
}
ilObjGlossaryGUI::editStyleProperties ( )

Edit style properties.

Definition at line 1682 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), initStylePropertiesForm(), and setSettingsSubTabs().

{
global $ilTabs, $tpl;
$this->checkPermission("write");
$tpl->setContent($this->form->getHTML());
$ilTabs->activateTab("settings");
$this->setSettingsSubTabs("style");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::editTerm ( )

edit term

Definition at line 1179 of file class.ilObjGlossaryGUI.php.

{
// deprecated
}
& ilObjGlossaryGUI::executeCommand ( )

execute command

Reimplemented from ilObjectGUI.

Definition at line 74 of file class.ilObjGlossaryGUI.php.

References $_GET, $_POST, $cmd, $ilErr, ilObjectGUI\$lng, $ret, ilObjectGUI\addHeaderAction(), ilMDEditorGUI\addObserver(), ilObjectGUI\checkPermission(), ilObjectGUI\getCreationMode(), ilCommonActionDispatcherGUI\getInstanceFromAjaxCall(), getTemplate(), ilObjectGUI\omitLocator(), ilObjectGUI\prepareOutput(), ilObjectGUI\setLocator(), setSettingsSubTabs(), setTabs(), and showInfoScreen().

{
global $lng, $ilAccess, $ilTabs, $ilErr;
$cmd = $this->ctrl->getCmd();
$next_class = $this->ctrl->getNextClass($this);
switch ($next_class)
{
case 'ilmdeditorgui':
$this->checkPermission("write");
$this->getTemplate();
$this->setTabs();
$this->setLocator();
$this->addHeaderAction();
include_once 'Services/MetaData/classes/class.ilMDEditorGUI.php';
$md_gui =& new ilMDEditorGUI($this->object->getId(), 0, $this->object->getType());
$md_gui->addObserver($this->object,'MDUpdateListener','General');
$this->ctrl->forwardCommand($md_gui);
break;
case "ilglossarytermgui":
// $this->quickList();
$this->ctrl->setReturn($this, "listTerms");
$term_gui =& new ilGlossaryTermGUI($this->term_id);
$term_gui->setGlossary($this->object);
//$ret =& $term_gui->executeCommand();
$ret =& $this->ctrl->forwardCommand($term_gui);
break;
case "ilinfoscreengui":
$this->addHeaderAction();
$this->showInfoScreen();
break;
case "ilobjstylesheetgui":
include_once ("./Services/Style/classes/class.ilObjStyleSheetGUI.php");
$this->ctrl->setReturn($this, "editStyleProperties");
$style_gui = new ilObjStyleSheetGUI("", $this->object->getStyleSheetId(), false, false);
$style_gui->omitLocator();
if ($cmd == "create" || $_GET["new_type"]=="sty")
{
$style_gui->setCreationMode(true);
}
if ($cmd == "confirmedDelete")
{
$this->object->setStyleSheetId(0);
$this->object->update();
}
$ret = $this->ctrl->forwardCommand($style_gui);
if ($cmd == "save" || $cmd == "copyStyle" || $cmd == "importStyle")
{
$style_id = $ret;
$this->object->setStyleSheetId($style_id);
$this->object->update();
$this->ctrl->redirectByClass("ilobjstylesheetgui", "edit");
}
break;
case 'ilpermissiongui':
if (strtolower($_GET["baseClass"]) == "iladministrationgui")
{
$this->prepareOutput();
}
else
{
$this->getTemplate();
$this->setTabs();
$this->setLocator();
$this->addHeaderAction();
}
include_once("Services/AccessControl/classes/class.ilPermissionGUI.php");
$perm_gui =& new ilPermissionGUI($this);
$ret =& $this->ctrl->forwardCommand($perm_gui);
break;
case "ilcommonactiondispatchergui":
include_once("Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
$this->ctrl->forwardCommand($gui);
break;
case "ilobjtaxonomygui":
$this->getTemplate();
$this->setTabs();
$this->setLocator();
$this->addHeaderAction();
$ilTabs->activateTab("settings");
$this->setSettingsSubTabs("taxonomy");
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php");
$this->ctrl->setReturn($this, "properties");
$tax_gui = new ilObjTaxonomyGUI();
$tax_gui->setMultiple(false);
/*include_once("./Modules/Glossary/classes/class.ilTermTaxInfo.php");
$term_info = new ilTermTaxInfo();*/
//$tax_gui->activateAssignedItemSorting($term_info, "glo", "term");
$tax_gui->setAssignedObject($this->object->getId());
$ret = $this->ctrl->forwardCommand($tax_gui);
break;
case "ilexportgui":
$this->getTemplate();
$this->setTabs();
$ilTabs->activateTab("export");
$this->setLocator();
include_once("./Services/Export/classes/class.ilExportGUI.php");
$exp_gui = new ilExportGUI($this);
//$exp_gui->addFormat("xml", "", $this, "export");
$exp_gui->addFormat("xml");
$exp_gui->addFormat("html", "", $this, "exportHTML");
$exp_gui->addCustomColumn($lng->txt("cont_public_access"),
$this, "getPublicAccessColValue");
$exp_gui->addCustomMultiCommand($lng->txt("cont_public_access"),
$this, "publishExportFile");
$ret = $this->ctrl->forwardCommand($exp_gui);
break;
default:
$cmd = $this->ctrl->getCmd("listTerms");
if (($cmd == "create") && ($_POST["new_type"] == "term"))
{
$this->ctrl->setCmd("create");
$this->ctrl->setCmdClass("ilGlossaryTermGUI");
$ret =& $this->executeCommand();
return;
}
else
{
if (!in_array($cmd, array("frameset", "quickList")))
{
if (strtolower($_GET["baseClass"]) == "iladministrationgui" ||
$this->getCreationMode() == true)
{
$this->prepareOutput();
$cmd.= "Object";
}
else
{
$this->getTemplate();
$this->setTabs();
$this->setLocator();
$this->addHeaderAction();
}
}
$ret =& $this->$cmd();
}
break;
}
if (!in_array($cmd, array("frameset", "quickList")))
{
if (strtolower($_GET["baseClass"]) != "iladministrationgui")
{
if (!$this->getCreationMode())
{
$this->tpl->show();
}
}
}
else
{
$this->tpl->show(false);
}
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::export ( )

export content object

Definition at line 1204 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\checkPermission().

{
$this->checkPermission("write");
require_once("./Modules/Glossary/classes/class.ilGlossaryExport.php");
$glo_exp = new ilGlossaryExport($this->object);
$glo_exp->buildExportFile();
$this->ctrl->redirectByClass("ilexportgui", "");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::exportHTML ( )

create html package

Definition at line 1217 of file class.ilObjGlossaryGUI.php.

{
require_once("./Modules/Glossary/classes/class.ilGlossaryExport.php");
$glo_exp = new ilGlossaryExport($this->object, "html");
$glo_exp->buildExportFile();
//echo $this->tpl->get();
$this->ctrl->redirectByClass("ilexportgui", "");
}
ilObjGlossaryGUI::frameset ( )

glossary edit frameset

Definition at line 777 of file class.ilObjGlossaryGUI.php.

References $_GET, $ilCtrl, and exit.

{
global $ilCtrl;
include_once("Services/Frameset/classes/class.ilFramesetGUI.php");
$fs_gui = new ilFramesetGUI();
$fs_gui->setFramesetTitle($this->object->getTitle());
if ((int) $_GET["edit_term"] > 0)
{
$ilCtrl->setParameterByClass("ilglossarytermgui", "term_id", (int) $_GET["edit_term"]);
$fs_gui->setMainFrameSource($this->ctrl->getLinkTargetByClass("ilglossarytermgui", "listDefinitions"));
}
else
{
$fs_gui->setMainFrameSource($this->ctrl->getLinkTarget($this, "listTerms"));
}
$fs_gui->setSideFrameSource($this->ctrl->getLinkTarget($this, "quickList"));
$fs_gui->setMainFrameName("content");
$fs_gui->setSideFrameName("tree");
$fs_gui->show();
}
ilObjGlossaryGUI::getPublicAccessColValue (   $a_type,
  $a_file 
)

Get public access value for export table.

Definition at line 1817 of file class.ilObjGlossaryGUI.php.

References $ilCtrl, and ilObjectGUI\$lng.

{
global $lng, $ilCtrl;
if ($this->object->getPublicExportFile($a_type) == $a_file)
{
return $lng->txt("yes");
}
return " ";
}
ilObjGlossaryGUI::getTabs ( $tabs_gui)

get tabs

Reimplemented from ilObjectGUI.

Definition at line 1492 of file class.ilObjGlossaryGUI.php.

References $_GET.

Referenced by setTabs().

{
global $rbacsystem, $ilHelp;
$ilHelp->setScreenIdComponent("glo");
// list terms
$force_active = ($_GET["cmd"] == "" || $_GET["cmd"] == "listTerms")
? true
: false;
$tabs_gui->addTarget("cont_terms",
$this->ctrl->getLinkTarget($this, "listTerms"), array("listTerms", ""),
get_class($this), "", $force_active);
$force_active = false;
if ($this->ctrl->getCmd() == "showSummary" ||
strtolower($this->ctrl->getNextClass()) == "ilinfoscreengui")
{
$force_active = true;
}
$tabs_gui->addTarget("info_short",
$this->ctrl->getLinkTargetByClass("ilinfoscreengui", "showSummary"), "",
"ilInfoScreenGUI", "", $force_active);
// properties
if ($rbacsystem->checkAccess('write',$this->object->getRefId()))
{
$tabs_gui->addTarget("settings",
$this->ctrl->getLinkTarget($this, "properties"), "properties",
get_class($this));
// meta data
$tabs_gui->addTarget("meta_data",
$this->ctrl->getLinkTargetByClass('ilmdeditorgui','listSection'),
"", "ilmdeditorgui");
// export
/*$tabs_gui->addTarget("export",
$this->ctrl->getLinkTarget($this, "exportList"),
array("exportList", "viewExportLog"), get_class($this));*/
// export
$tabs_gui->addTarget("export",
$this->ctrl->getLinkTargetByClass("ilexportgui", ""),
"", "ilexportgui");
}
// permissions
if ($rbacsystem->checkAccess('edit_permission',$this->object->getRefId()))
{
/*$tabs_gui->addTarget("permission_settings",
$this->ctrl->getLinkTarget($this, "perm"),
array("perm", "info"),
get_class($this));
*/
$tabs_gui->addTarget("perm_settings",
$this->ctrl->getLinkTargetByClass(array(get_class($this),'ilpermissiongui'), "perm"), array("perm","info","owner"), 'ilpermissiongui');
}
$tabs_gui->addNonTabbedLink("presentation_view",
$this->lng->txt("glo_presentation_view"),
"ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$this->object->getRefID(),
"_top"
);
}

+ Here is the caller graph for this function:

ilObjGlossaryGUI::getTemplate ( )

Definition at line 1462 of file class.ilObjGlossaryGUI.php.

References ilGlossaryTerm\_lookGlossaryTerm(), and ilUtil\getImagePath().

Referenced by executeCommand(), and showInfoScreen().

{
$this->tpl->getStandardTemplate();
$title = $this->object->getTitle();
if ($this->term_id > 0)
{
$this->tpl->setTitle($this->lng->txt("term").": ".
}
else
{
$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo_b.png"));
$this->tpl->setTitle($this->lng->txt("glo").": ".$title);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::ilObjGlossaryGUI (   $a_data,
  $a_id = 0,
  $a_call_by_reference = true,
  $a_prepare_output = true 
)

Constructor public.

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

References $_GET, $ilCtrl, ilObjectGUI\$lng, ilGlossaryTerm\_lookGlossaryID(), and ilObjectGUI\ilObjectGUI().

{
global $ilCtrl, $lng;
$this->ctrl =& $ilCtrl;
$this->ctrl->saveParameter($this, array("ref_id", "offset"));
$lng->loadLanguageModule("content");
$this->type = "glo";
parent::ilObjectGUI($a_data, $a_id, $a_call_by_reference, false);
// determine term id and check whether it is valid (belongs to
// current glossary)
$this->term_id = (int) $_GET["term_id"];
$term_glo_id = ilGlossaryTerm::_lookGlossaryID($this->term_id);
if ($this->term_id > 0 && $term_glo_id != $this->object->getId())
{
$this->term_id = "";
}
$this->tax_id = $this->object->getTaxonomyId();
if ($this->tax_id > 0)
{
$this->ctrl->saveParameter($this, array("show_tax", "tax_node"));
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$this->tax = new ilObjTaxonomy($this->tax_id);
}
if ((int) $_GET["tax_node"] > 1 && $this->tax->getTree()->readRootId() != $_GET["tax_node"])
{
$this->tax_node = (int) $_GET["tax_node"];
}
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::importFileObject ( )

display status information or report errors messages in case of error

public

Definition at line 361 of file class.ilObjGlossaryGUI.php.

References $_GET, $_REQUEST, $file, $ilErr, ilObjectGUI\$tpl, ilObject\_writeImportId(), ilObjectGUI\checkPermissionBool(), ilUtil\delDir(), ilObjectGUI\initImportForm(), ilUtil\moveUploadedFile(), ilObjectGUI\putObjectInTree(), ilUtil\redirect(), ilUtil\sendSuccess(), and ilUtil\unzip().

{
$new_type = $_REQUEST["new_type"];
// create permission is already checked in createObject. This check here is done to prevent hacking attempts
if (!$this->checkPermissionBool("create", "", $new_type))
{
$ilErr->raiseError($this->lng->txt("no_create_permission"));
}
$this->lng->loadLanguageModule($new_type);
$this->ctrl->setParameter($this, "new_type", $new_type);
$form = $this->initImportForm($new_type);
if ($form->checkInput())
{
$this->ctrl->setParameter($this, "new_type", "");
$upload = $_FILES["importfile"];
// create and insert object in objecttree
include_once("./Modules/Glossary/classes/class.ilObjGlossary.php");
$newObj = new ilObjGlossary();
$newObj->setType($new_type);
$newObj->setTitle($upload["name"]);
$newObj->create(true);
$this->putObjectInTree($newObj);
// create import directory
$newObj->createImportDirectory();
// copy uploaded file to import directory
$file = pathinfo($upload["name"]);
$full_path = $newObj->getImportDirectory()."/".$upload["name"];
ilUtil::moveUploadedFile($upload["tmp_name"], $upload["name"],
$full_path);
// unzip file
ilUtil::unzip($full_path);
// determine filename of xml file
$subdir = basename($file["basename"],".".$file["extension"]);
$xml_file = $newObj->getImportDirectory()."/".$subdir."/".$subdir.".xml";
// check whether this is a new export file.
// this is the case if manifest.xml exits
//echo "1-".$newObj->getImportDirectory()."/".$subdir."/manifest.xml"."-";
if (is_file($newObj->getImportDirectory()."/".$subdir."/manifest.xml"))
{
include_once("./Services/Export/classes/class.ilImport.php");
$imp = new ilImport((int) $_GET["ref_id"]);
$map = $imp->getMapping();
$map->addMapping("Modules/Glossary", "glo", "new_id", $newObj->getId());
$imp->importObject($newObj, $full_path, $upload["name"], "glo",
"Modules/Glossary", true);
ilUtil::sendSuccess($this->lng->txt("glo_added"),true);
ilUtil::redirect("ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$newObj->getRefId());
}
// check whether subdirectory exists within zip file
if (!is_dir($newObj->getImportDirectory()."/".$subdir))
{
$this->ilias->raiseError(sprintf($this->lng->txt("cont_no_subdir_in_zip"), $subdir),
$this->ilias->error_obj->MESSAGE);
}
// check whether xml file exists within zip file
if (!is_file($xml_file))
{
$this->ilias->raiseError(sprintf($this->lng->txt("cont_zip_file_invalid"), $subdir."/".$subdir.".xml"),
$this->ilias->error_obj->MESSAGE);
}
include_once ("./Modules/LearningModule/classes/class.ilContObjParser.php");
$contParser = new ilContObjParser($newObj, $xml_file, $subdir);
$contParser->startParsing();
ilObject::_writeImportId($newObj->getId(), $newObj->getImportId());
// delete import directory
ilUtil::delDir($newObj->getImportDirectory());
ilUtil::sendSuccess($this->lng->txt("glo_added"),true);
ilUtil::redirect("ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$newObj->getRefId());
}
// display form to correct errors
$form->setValuesByPost();
$tpl->setContent($form->getHtml());
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::importObject ( )

Definition at line 307 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\createObject().

{
$this->createObject();
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::initCreateForm (   $a_new_type)

Init object creation form.

Parameters
string$a_new_type
Returns
ilPropertyFormGUI

Reimplemented from ilObjectGUI.

Definition at line 268 of file class.ilObjGlossaryGUI.php.

References ilTextAreaInputGUI\setCols(), ilSelectInputGUI\setOptions(), ilTextInputGUI\setSize(), and ilObject\TITLE_LENGTH.

Referenced by initCreationForms(), and saveObject().

{
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$form = new ilPropertyFormGUI();
$form->setTarget("_top");
$form->setFormAction($this->ctrl->getFormAction($this));
$form->setTitle($this->lng->txt($a_new_type."_new"));
// title
$ti = new ilTextInputGUI($this->lng->txt("title"), "title");
$ti->setMaxLength(ilObject::TITLE_LENGTH);
$ti->setRequired(true);
$form->addItem($ti);
// description
$ta = new ilTextAreaInputGUI($this->lng->txt("description"), "desc");
$ta->setCols(40);
$ta->setRows(2);
$form->addItem($ta);
// mode
$stati = array(
"none"=>$this->lng->txt("glo_mode_normal"),
"level"=>$this->lng->txt("glo_mode_level"),
"subtree"=>$this->lng->txt("glo_mode_subtree")
);
$tm = new ilSelectInputGUI($this->lng->txt("glo_mode"), "glo_mode");
$tm->setOptions($stati);
$tm->setInfo($this->lng->txt("glo_mode_desc"));
$tm->setRequired(true);
$form->addItem($tm);
$form->addCommandButton("save", $this->lng->txt($a_new_type."_add"));
$form->addCommandButton("cancel", $this->lng->txt("cancel"));
return $form;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::initCreationForms (   $a_new_type)
protected

Init creation froms.

this will create the default creation forms: new, import, clone

Parameters
string$a_new_type
Returns
array

Reimplemented from ilObjectGUI.

Definition at line 258 of file class.ilObjGlossaryGUI.php.

References initCreateForm(), and ilObjectGUI\initImportForm().

{
$forms = array(
self::CFORM_NEW => $this->initCreateForm($a_new_type),
self::CFORM_IMPORT => $this->initImportForm($a_new_type)
);
return $forms;
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::initSettingsForm (   $a_mode = "edit")

Init settings form.

Parameters
int$a_modeEdit Mode

Definition at line 585 of file class.ilObjGlossaryGUI.php.

References $ilCtrl, ilObjectGUI\$lng, $section, ilSubEnabledFormPropertyGUI\addSubItem(), ilGlossaryAdvMetaDataAdapter\getColumnOrder(), ilObjTaxonomy\getUsageOfObject(), ilAdvancedMDRecordGUI\MODE_REC_SELECTION, ilRadioOption\setInfo(), ilFormPropertyGUI\setInfo(), ilAdvancedMDRecordGUI\setPropertyForm(), ilFormPropertyGUI\setRequired(), ilGloAdvColSortInputGUI\setValue(), ilCheckboxInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().

Referenced by properties(), and saveProperties().

{
global $lng, $ilCtrl;
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
// title
$title = new ilTextInputGUI($lng->txt("title"), "title");
$title->setRequired(true);
$this->form->addItem($title);
// description
$desc = new ilTextAreaInputGUI($lng->txt("desc"), "description");
$this->form->addItem($desc);
$lng->loadLanguageModule("rep");
$section->setTitle($this->lng->txt('rep_activation_availability'));
$this->form->addItem($section);
// online
$online = new ilCheckboxInputGUI($lng->txt("cont_online"), "cobj_online");
$online->setValue("y");
$online->setInfo($lng->txt("glo_online_info"));
$this->form->addItem($online);
$section->setTitle($this->lng->txt('glo_content_settings'));
$this->form->addItem($section);
// glossary mode
$glo_mode = new ilRadioGroupInputGUI($lng->txt("glo_mode"), "glo_mode");
//$glo_mode->setInfo($lng->txt("glo_mode_desc"));
$op1 = new ilRadioOption($lng->txt("glo_mode_normal"), "none",$lng->txt("glo_mode_normal_info"));
$glo_mode->addOption($op1);
$op2 = new ilRadioOption($lng->txt("glo_mode_level"), "level",$lng->txt("glo_mode_level_info"));
$glo_mode->addOption($op2);
$op3 = new ilRadioOption($lng->txt("glo_mode_subtree"), "subtree",$lng->txt("glo_mode_subtree_info"));
$glo_mode->addOption($op3);
$this->form->addItem($glo_mode);
// glossary mode
/*$options = array(
"none"=>$this->lng->txt("glo_mode_normal"),
"level"=>$this->lng->txt("glo_mode_level"),
"subtree"=>$this->lng->txt("glo_mode_subtree")
);
$glo_mode = new ilSelectInputGUI($lng->txt("glo_mode"), "glo_mode");
$glo_mode->setOptions($options);
$glo_mode->setInfo($lng->txt("glo_mode_desc"));
$this->form->addItem($glo_mode);*/
$section->setTitle($this->lng->txt('cont_presentation'));
$this->form->addItem($section);
// presentation mode
$pres_mode = new ilRadioGroupInputGUI($lng->txt("glo_presentation_mode"), "pres_mode");
$pres_mode->setValue("table");
$op1 = new ilRadioOption($lng->txt("glo_table_form"), "table", $lng->txt("glo_table_form_info"));
// short text length
$snl = new ilNumberInputGUI($lng->txt("glo_text_snippet_length"), "snippet_length");
$snl->setMaxValue(3000);
$snl->setMinValue(100);
$snl->setMaxLength(4);
$snl->setSize(4);
$snl->setInfo($lng->txt("glo_text_snippet_length_info"));
$snl->setValue(200);
$op1->addSubItem($snl);
$pres_mode->addOption($op1);
$op2 = new ilRadioOption($lng->txt("glo_full_definitions"), "full_def", $lng->txt("glo_full_definitions_info"));
$pres_mode->addOption($op2);
$this->form->addItem($pres_mode);
// show taxonomy
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$tax_ids = ilObjTaxonomy::getUsageOfObject($this->object->getId());
if (count($tax_ids) > 0)
{
$show_tax = new ilCheckboxInputGUI($this->lng->txt("glo_show_taxonomy"), "show_tax");
$show_tax->setInfo($this->lng->txt("glo_show_taxonomy_info"));
$this->form->addItem($show_tax);
}
// downloads
$down = new ilCheckboxInputGUI($lng->txt("cont_downloads"), "glo_act_downloads");
$down->setValue("y");
$down->setInfo($lng->txt("cont_downloads_desc"));
$this->form->addItem($down);
if ($a_mode == "edit")
{
$title->setValue($this->object->getTitle());
$desc->setValue($this->object->getDescription());
$online->setChecked($this->object->getOnline());
$glo_mode->setValue($this->object->getVirtualMode());
$pres_mode->setValue($this->object->getPresentationMode());
$snl->setValue($this->object->getSnippetLength());
if (count($tax_ids) > 0)
{
$show_tax->setChecked($this->object->getShowTaxonomy());
}
$down->setChecked($this->object->isActiveDownloads());
}
// advanced metadata
include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
$record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_REC_SELECTION,'glo',$this->object->getId(), "term");
$record_gui->setPropertyForm($this->form);
$record_gui->parseRecordSelection($this->lng->txt("glo_add_term_properties"));
// sort columns, if adv fields are given
include_once("./Modules/Glossary/classes/class.ilGlossaryAdvMetaDataAdapter.php");
$adv_ap = new ilGlossaryAdvMetaDataAdapter($this->object->getId());
$cols = $adv_ap->getColumnOrder();
if (count($cols) > 1)
{
include_once './Modules/Glossary/classes/class.ilGloAdvColSortInputGUI.php';
$ti = new ilGloAdvColSortInputGUI($lng->txt("cont_col_ordering"), "field_order");
$this->form->addItem($ti);
$ti->setValue($cols);
}
// save and cancel commands
$this->form->addCommandButton("saveProperties", $lng->txt("save"));
$this->form->setTitle($lng->txt("cont_glo_properties"));
$this->form->setFormAction($ilCtrl->getFormAction($this));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::initStylePropertiesForm ( )

Init style properties form.

Definition at line 1698 of file class.ilObjGlossaryGUI.php.

References $_GET, $ilCtrl, $ilSetting, ilObjectGUI\$lng, ilObjStyleSheet\_getStandardStyles(), ilObjStyleSheet\_lookupStandard(), ilObject\_lookupTitle(), ilUtil\formSelect(), ilSelectInputGUI\setOptions(), and ilNonEditableValueGUI\setValue().

Referenced by editStyleProperties().

{
global $ilCtrl, $lng, $ilTabs, $ilSetting;
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$lng->loadLanguageModule("style");
include_once("./Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
$fixed_style = $ilSetting->get("fixed_content_style_id");
$style_id = $this->object->getStyleSheetId();
if ($fixed_style > 0)
{
$st = new ilNonEditableValueGUI($lng->txt("style_current_style"));
$st->setValue(ilObject::_lookupTitle($fixed_style)." (".
$this->lng->txt("global_fixed").")");
$this->form->addItem($st);
}
else
{
$st_styles = ilObjStyleSheet::_getStandardStyles(true, false,
$_GET["ref_id"]);
$st_styles[0] = $this->lng->txt("default");
ksort($st_styles);
if ($style_id > 0)
{
// individual style
{
$st = new ilNonEditableValueGUI($lng->txt("style_current_style"));
$st->setValue(ilObject::_lookupTitle($style_id));
$this->form->addItem($st);
//$this->ctrl->getLinkTargetByClass("ilObjStyleSheetGUI", "edit"));
// delete command
$this->form->addCommandButton("editStyle",
$lng->txt("style_edit_style"));
$this->form->addCommandButton("deleteStyle",
$lng->txt("style_delete_style"));
//$this->ctrl->getLinkTargetByClass("ilObjStyleSheetGUI", "delete"));
}
}
if ($style_id <= 0 || ilObjStyleSheet::_lookupStandard($style_id))
{
$style_sel = ilUtil::formSelect ($style_id, "style_id",
$st_styles, false, true);
$style_sel = new ilSelectInputGUI($lng->txt("style_current_style"), "style_id");
$style_sel->setOptions($st_styles);
$style_sel->setValue($style_id);
$this->form->addItem($style_sel);
//$this->ctrl->getLinkTargetByClass("ilObjStyleSheetGUI", "create"));
$this->form->addCommandButton("saveStyleSettings",
$lng->txt("save"));
$this->form->addCommandButton("createStyle",
$lng->txt("sty_create_ind_style"));
}
}
$this->form->setTitle($lng->txt("glo_style"));
$this->form->setFormAction($ilCtrl->getFormAction($this));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::listTerms ( )

list terms

Definition at line 927 of file class.ilObjGlossaryGUI.php.

References $_GET, $_SESSION, $ilCtrl, $ilUser, $lang, ilObjectGUI\$lng, $si, $tab, ilObjectGUI\$tpl, ilMDLanguageItem\_getLanguages(), ilTextInputGUI\setMaxLength(), and showTaxonomy().

Referenced by applyFilter(), and resetFilter().

{
global $ilUser, $ilToolbar, $lng, $ilCtrl, $tpl;
if ($_GET["show_tax"])
{
$this->showTaxonomy();
}
// term
include_once("./Services/Form/classes/class.ilTextInputGUI.php");
$ti = new ilTextInputGUI($lng->txt("cont_new_term"), "new_term");
$ti->setMaxLength(80);
$ti->setSize(20);
$ilToolbar->addInputItem($ti, true);
// language
$this->lng->loadLanguageModule("meta");
if ($_SESSION["il_text_lang_".$_GET["ref_id"]] != "")
{
$s_lang = $_SESSION["il_text_lang_".$_GET["ref_id"]];
}
else
{
$s_lang = $ilUser->getLanguage();
}
include_once("./Services/Form/classes/class.ilSelectInputGUI.php");
$si = new ilSelectInputGUI($lng->txt("language"), "term_language");
$si->setOptions($lang);
$si->setValue($s_lang);
$ilToolbar->addInputItem($si, true);
$ilToolbar->setFormAction($ilCtrl->getFormAction($this));
$ilToolbar->addFormButton($lng->txt("glo_add_new_term"), "addTerm");
//$select_language = ilUtil::formSelect ($s_lang, "term_language",$lang,false,true);
//$this->tpl->setVariable("SELECT_LANGUAGE", $select_language);
if (is_object($this->tax))
{
$ilToolbar->addSeparator();
if ($_GET["show_tax"])
{
$ilToolbar->addButton($lng->txt("glo_hide_taxonomy"),
$ilCtrl->getLinkTarget($this, "deactTaxonomy"));
}
else
{
$ilToolbar->addButton($lng->txt("glo_show_taxonomy"),
$ilCtrl->getLinkTarget($this, "actTaxonomy"));
}
}
include_once("./Modules/Glossary/classes/class.ilTermListTableGUI.php");
$tab = new ilTermListTableGUI($this, "listTerms", $this->tax_node);
$tpl->setContent($tab->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::moveDefinitionDown ( )

move a definiton down

Definition at line 1097 of file class.ilObjGlossaryGUI.php.

References $_GET.

{
include_once("./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
$definition =& new ilGlossaryDefinition($_GET["def"]);
$definition->moveDown();
$this->ctrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::moveDefinitionUp ( )

move a definiton up

Definition at line 1084 of file class.ilObjGlossaryGUI.php.

References $_GET.

{
include_once("./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
$definition =& new ilGlossaryDefinition($_GET["def"]);
$definition->moveUp();
$this->ctrl->redirect($this, "listTerms");
}
ilObjGlossaryGUI::properties ( )

edit properties of object (admin form)

public

Definition at line 562 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\$tpl, ilObjectGUI\checkPermission(), initSettingsForm(), and setSettingsSubTabs().

{
global $tpl;
$this->checkPermission("write");
$this->setSettingsSubTabs("general_settings");
$this->initSettingsForm();
// Edit ecs export settings
include_once 'Modules/Glossary/classes/class.ilECSGlossarySettings.php';
$ecs = new ilECSGlossarySettings($this->object);
$ecs->addSettingsToForm($this->form, 'glo');
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::publishExportFile ( )

download export file

Definition at line 1229 of file class.ilObjGlossaryGUI.php.

References $_POST, and $file.

{
if(!isset($_POST["file"]))
{
$this->ilias->raiseError($this->lng->txt("no_checkbox"),$this->ilias->error_obj->MESSAGE);
}
if (count($_POST["file"]) > 1)
{
$this->ilias->raiseError($this->lng->txt("cont_select_max_one_item"),$this->ilias->error_obj->MESSAGE);
}
$file = explode(":", $_POST["file"][0]);
$export_dir = $this->object->getExportDirectory($file[0]);
if ($this->object->getPublicExportFile($file[0]) ==
$file[1])
{
$this->object->setPublicExportFile($file[0], "");
}
else
{
$this->object->setPublicExportFile($file[0], $file[1]);
}
$this->object->update();
$this->ctrl->redirectByClass("ilexportgui", "");
}
ilObjGlossaryGUI::quickList ( )

quick term list

Definition at line 803 of file class.ilObjGlossaryGUI.php.

References $_GET, $ilUser, $tab, $term, ilObjectGUI\$tpl, ilGlossaryDefinition\getDefinitionList(), and ilUtil\switchColor().

{
global $ilUser, $tpl;
return;
include_once("./Modules/Glossary/classes/class.ilTermQuickListTableGUI.php");
$tab = new ilTermQuickListTableGUI($this, "listTerms");
$tpl->setLeftContent($tab->getHTML());
$this->tpl->addBlockFile("CONTENT", "content", "tpl.glossary_short_list.html",
"Modules/Glossary");
// $this->tpl->addBlockFile("EXPLORER_TOP", "exp_top", "tpl.explorer_top.html");
// $this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
$this->tpl->setVariable("FORMACTION1", $this->ctrl->getFormAction($this));
$this->tpl->setVariable("CMD_REFR", "quickList");
$this->tpl->setVariable("TXT_REFR", $this->lng->txt("refresh"));
$this->tpl->setVariable("TXT_EXPLORER_HEADER", $this->lng->txt("cont_terms"));
include_once "./Services/Table/classes/class.ilTableGUI.php";
// glossary term list template
// load template for table
$this->tpl->addBlockfile("SHORT_LIST", "list", "tpl.table.html");
// load template for table content data
$this->tpl->addBlockfile("TBL_CONTENT", "tbl_content", "tpl.term_short_tbl_row.html", true);
$num = 0;
$this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
// create table
$tbl = new ilTableGUI();
// title & header columns
//$tbl->setTitle($this->lng->txt("cont_terms"));
//$tbl->setHelp("tbl_help.php","icon_help.png",$this->lng->txt("help"));
$tbl->setHeaderNames(array($this->lng->txt("cont_term")));
$cols = array("term");
$header_params = $this->ctrl->getParameterArrayByClass("ilobjglossarygui", "listTerms");
$header_params["cmd"] = "quickList";
$tbl->setHeaderVars($cols, $header_params);
$tbl->setColumnWidth(array("100%"));
$tbl->disable("title");
// control
$tbl->setOrderColumn($_GET["sort_by"]);
$tbl->setOrderDirection($_GET["sort_order"]);
$tbl->setLimit($_GET["limit"]);
$tbl->setOffset($_GET["offset"]);
$tbl->disable("header");
$term_list = $this->object->getTermList();
$tbl->setMaxCount(count($term_list));
$this->tpl->setVariable("COLUMN_COUNT", 1);
// footer
$tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
// sorting array
$term_list = array_slice($term_list, $_GET["offset"], $_GET["limit"]);
// render table
$tbl->render();
if (count($term_list) > 0)
{
$i=1;
foreach($term_list as $key => $term)
{
$sep = ": ";
for($j=0; $j<count($defs); $j++)
{
$def = $defs[$j];
// edit
$this->tpl->setCurrentBlock("definition");
$this->tpl->setVariable("SEP", $sep);
$this->ctrl->setParameterByClass("ilglossarydefpagegui", "term_id", $term["id"]);
$this->ctrl->setParameterByClass("ilglossarydefpagegui", "def", $def["id"]);
$this->tpl->setVariable("LINK_EDIT_DEF",
$this->ctrl->getLinkTargetByClass(array("ilglossarytermgui",
"iltermdefinitioneditorgui",
"ilglossarydefpagegui"), "edit"));
$this->tpl->setVariable("TEXT_DEF", $this->lng->txt("glo_definition_abbr").($j+1));
$this->tpl->parseCurrentBlock();
$sep = ", ";
}
$this->tpl->setCurrentBlock("tbl_content");
$css_row = ilUtil::switchColor(++$i,"tblrow1","tblrow2");
// edit term link
$this->tpl->setVariable("TEXT_TERM", $term["term"]);
$this->ctrl->setParameter($this, "term_id", $term["id"]);
$this->tpl->setVariable("LINK_EDIT_TERM",
$this->ctrl->getLinkTargetByClass("ilglossarytermgui", "editTerm"));
$this->tpl->setVariable("CSS_ROW", $css_row);
$this->tpl->parseCurrentBlock();
}
} //if is_array
else
{
//$this->tpl->setCurrentBlock("notfound");
$this->tpl->setVariable("TXT_OBJECT_NOT_FOUND", $this->lng->txt("obj_not_found"));
$this->tpl->setVariable("NUM_COLS", $num);
//$this->tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::resetFilter ( )

Reset filter (note: this function existed before data table filter has been introduced.

Definition at line 1642 of file class.ilObjGlossaryGUI.php.

References listTerms().

{
include_once("./Modules/Glossary/classes/class.ilTermListTableGUI.php");
$prtab = new ilTermListTableGUI($this, "listTerms", $this->tax_node);
$prtab->resetOffset();
$prtab->resetFilter();
$this->listTerms();
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::saveObject ( )

save new content object to db

Reimplemented from ilObjectGUI.

Definition at line 315 of file class.ilObjGlossaryGUI.php.

References $_REQUEST, ilObjectGUI\$tpl, ilObjectGUI\checkPermissionBool(), initCreateForm(), ilObjectGUI\putObjectInTree(), ilUtil\redirect(), and ilUtil\sendSuccess().

{
global $tpl;
$new_type = $_REQUEST["new_type"];
// create permission is already checked in createObject. This check here is done to prevent hacking attempts
if (!$this->checkPermissionBool("create", "", $new_type))
{
$this->ilias->raiseError($this->lng->txt("no_create_permission"), $this->ilias->error_obj->MESSAGE);
}
$this->lng->loadLanguageModule($new_type);
$this->ctrl->setParameter($this, "new_type", $new_type);
$form = $this->initCreateForm($new_type);
if ($form->checkInput())
{
$this->ctrl->setParameter($this, "new_type", "");
include_once("./Modules/Glossary/classes/class.ilObjGlossary.php");
$newObj = new ilObjGlossary();
$newObj->setType($new_type);
$newObj->setTitle($form->getInput("title"));
$newObj->setDescription($form->getInput("desc"));
$newObj->setVirtualMode($form->getInput("glo_mode"));
$newObj->create();
$this->putObjectInTree($newObj);
// always send a message
ilUtil::sendSuccess($this->lng->txt("glo_added"),true);
ilUtil::redirect("ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$newObj->getRefId());
}
// display only this form to correct input
$form->setValuesByPost();
$tpl->setContent($form->getHtml());
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::saveProperties ( )

save properties

Definition at line 724 of file class.ilObjGlossaryGUI.php.

References $_POST, ilObjectGUI\$tpl, ilGlossaryAdvMetaDataAdapter\getColumnOrder(), initSettingsForm(), ilAdvancedMDRecordGUI\MODE_REC_SELECTION, ilAdvancedMDRecordGUI\saveSelection(), ilUtil\sendSuccess(), ilGlossaryDefinition\setShortTextsDirty(), and ilUtil\yn2tf().

{
global $tpl;
$this->initSettingsForm();
if ($this->form->checkInput())
{
$this->object->setTitle($_POST['title']);
$this->object->setDescription($_POST['description']);
$this->object->setOnline(ilUtil::yn2tf($_POST["cobj_online"]));
$this->object->setVirtualMode($_POST["glo_mode"]);
// $this->object->setActiveGlossaryMenu(ilUtil::yn2tf($_POST["glo_act_menu"]));
$this->object->setActiveDownloads(ilUtil::yn2tf($_POST["glo_act_downloads"]));
$this->object->setPresentationMode($_POST["pres_mode"]);
$this->object->setSnippetLength($_POST["snippet_length"]);
$this->object->setShowTaxonomy($_POST["show_tax"]);
$this->object->update();
// field order of advanced metadata
include_once("./Modules/Glossary/classes/class.ilGlossaryAdvMetaDataAdapter.php");
$adv_ap = new ilGlossaryAdvMetaDataAdapter($this->object->getId());
$cols = $adv_ap->getColumnOrder();
if (count($cols) > 1)
{
$adv_ap->saveColumnOrder($_POST["field_order"]);
}
// set definition short texts dirty
include_once("./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
// update metadata record selection
include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
$record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_REC_SELECTION,'glo',$this->object->getId(), "term");
$record_gui->saveSelection();
// Update ecs export settings
include_once 'Modules/Glossary/classes/class.ilECSGlossarySettings.php';
$ecs = new ilECSGlossarySettings($this->object);
if($ecs->handleSettingsUpdate())
{
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
$this->ctrl->redirect($this, "properties");
}
}
$this->form->setValuesByPost();
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::saveStyleSettings ( )

Save style settings.

Definition at line 1798 of file class.ilObjGlossaryGUI.php.

References $_POST, $ilSetting, ilObjStyleSheet\_lookupStandard(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().

{
global $ilSetting;
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
if ($ilSetting->get("fixed_content_style_id") <= 0 &&
(ilObjStyleSheet::_lookupStandard($this->object->getStyleSheetId())
|| $this->object->getStyleSheetId() == 0))
{
$this->object->setStyleSheetId(ilUtil::stripSlashes($_POST["style_id"]));
$this->object->update();
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
}
$this->ctrl->redirect($this, "editStyleProperties");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::saveTerm ( )

Definition at line 1415 of file class.ilObjGlossaryGUI.php.

References $ilCtrl, and ilUtil\sendSuccess().

{
$term_gui =& new ilGlossaryTermGUI();
$term_gui->setGlossary($this->object);
$term_gui->save();
ilUtil::sendSuccess($this->lng->txt("cont_added_term"),true);
//ilUtil::redirect("glossary_edit.php?ref_id=".$_GET["ref_id"]."&cmd=listTerms");
$ilCtrl->redirect($this, "listTerms");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::setContentStyleSheet (   $a_tpl = null)

Set content style sheet.

Definition at line 1659 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\$tpl, and ilObjStyleSheet\getContentStylePath().

Referenced by confirmDefinitionDeletion().

{
global $tpl;
if ($a_tpl != null)
{
$ctpl = $a_tpl;
}
else
{
$ctpl = $tpl;
}
$ctpl->setCurrentBlock("ContentStyle");
$ctpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->object->getStyleSheetId()));
$ctpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::setLocator (   $a_tree = "",
  $a_id = "" 
)

set Locator

Parameters
objecttree object
integerreference id public

Definition at line 1368 of file class.ilObjGlossaryGUI.php.

References $_GET, and ilObjectGUI\setLocator().

{
if(strtolower($_GET["baseClass"]) != "ilglossaryeditorgui")
{
parent::setLocator($a_tree, $a_id);
}
else
{
if(is_object($this->object))
{
require_once("./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
$gloss_loc =& new ilGlossaryLocatorGUI();
if (is_object($this->term))
{
$gloss_loc->setTerm($this->term);
}
$gloss_loc->setGlossary($this->object);
//$gloss_loc->setDefinition($this->definition);
$gloss_loc->display();
}
}
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::setSettingsSubTabs (   $a_active)

Set sub tabs.

Definition at line 1563 of file class.ilObjGlossaryGUI.php.

References $ilCtrl, ilObjectGUI\$lng, and ilObjTaxonomy\loadLanguageModule().

Referenced by editStyleProperties(), executeCommand(), and properties().

{
global $ilTabs, $ilCtrl, $lng;
if (in_array($a_active,
array("general_settings", "style", "taxonomy")))
{
// general properties
$ilTabs->addSubTab("general_settings",
$lng->txt("settings"),
$ilCtrl->getLinkTarget($this, 'properties'));
// style properties
$ilTabs->addSubTab("style",
$lng->txt("obj_sty"),
$ilCtrl->getLinkTarget($this, 'editStyleProperties'));
// taxonomy
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$ilTabs->addSubTab("taxonomy",
$lng->txt("tax_taxonomy"),
$ilCtrl->getLinkTargetByClass("ilobjtaxonomygui", ''));
$ilTabs->activateSubTab($a_active);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::setTabs ( )

output tabs

Reimplemented from ilObjectGUI.

Definition at line 1484 of file class.ilObjGlossaryGUI.php.

References getTabs().

Referenced by executeCommand(), and showInfoScreen().

{
$this->getTabs($this->tabs_gui);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::showActions (   $a_actions)

show possible action (form buttons)

public

Definition at line 1019 of file class.ilObjGlossaryGUI.php.

References $d, ilObjectGUI\$lng, and ilUtil\getImagePath().

{
foreach ($a_actions as $name => $lng)
{
$d[$name] = array("name" => $name, "lng" => $lng);
}
$notoperations = array();
$operations = array();
$operations = $d;
if (count($operations) > 0)
{
foreach ($operations as $val)
{
$this->tpl->setCurrentBlock("tbl_action_btn");
$this->tpl->setVariable("BTN_NAME", $val["name"]);
$this->tpl->setVariable("BTN_VALUE", $this->lng->txt($val["lng"]));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("tbl_action_row");
$this->tpl->setVariable("IMG_ARROW",ilUtil::getImagePath("arrow_downright.png"));
$this->tpl->parseCurrentBlock();
}
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::showInfoScreen ( )

Show info screen.

Parameters
@return

Definition at line 458 of file class.ilObjGlossaryGUI.php.

References $_GET, addUsagesToInfo(), getTemplate(), ilObjectGUI\setLocator(), and setTabs().

Referenced by executeCommand().

{
global $ilAccess;
$this->getTemplate();
$this->setTabs();
$this->setLocator();
$this->lng->loadLanguageModule("meta");
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->enablePrivateNotes();
$info->enableNews();
if ($ilAccess->checkAccess("write", "", $_GET["ref_id"]))
{
$info->enableNewsEditing();
$news_set = new ilSetting("news");
$enable_internal_rss = $news_set->get("enable_rss_for_internal");
if ($enable_internal_rss)
{
$info->setBlockProperty("news", "settings", true);
}
}
$info->addMetaDataSections($this->object->getId(),0, $this->object->getType());
ilObjGlossaryGUI::addUsagesToInfo($info, $this->object->getId());
$this->ctrl->forwardCommand($info);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::showTaxonomy ( )

Show taxonomy.

Parameters
@return

Definition at line 1835 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\$lng, ilObjectGUI\$tpl, and ilObjTaxonomy\getUsageOfObject().

Referenced by listTerms().

{
global $tpl, $lng;
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$tax_ids = ilObjTaxonomy::getUsageOfObject($this->object->getId());
if (count($tax_ids) > 0)
{
include_once("./Services/Taxonomy/classes/class.ilTaxonomyExplorerGUI.php");
$tax_exp = new ilTaxonomyExplorerGUI($this, "showTaxonomy", $tax_ids[0],
"ilobjglossarygui", "listTerms");
if (!$tax_exp->handleCommand())
{
//$tpl->setLeftNavContent($tax_exp->getHTML());
$tpl->setLeftNavContent($tax_exp->getHTML()."&nbsp;");
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilObjGlossaryGUI::updateTerm ( )

update term

Definition at line 1188 of file class.ilObjGlossaryGUI.php.

References $_POST, $term, ilUtil\sendSuccess(), and ilUtil\stripSlashes().

{
$term = new ilGlossaryTerm($this->term_id);
$term->setTerm(ilUtil::stripSlashes($_POST["term"]));
$term->setLanguage($_POST["term_language"]);
$term->update();
ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"),true);
$this->ctrl->redirect($this, "listTerms");
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::view ( )

view content

Definition at line 1395 of file class.ilObjGlossaryGUI.php.

References viewObject().

{
//$this->prepareOutput();
$this->viewObject();
}

+ Here is the call graph for this function:

ilObjGlossaryGUI::viewExportLog ( )

Definition at line 1259 of file class.ilObjGlossaryGUI.php.

References ilObjectGUI\$tree.

{
global $tree;
/*
$this->setTabs();
//add template for view button
$this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
// create export file button
$this->tpl->setCurrentBlock("btn_cell");
$this->tpl->setVariable("BTN_LINK", $this->ctrl->getLinkTarget($this, "exportList"));
$this->tpl->setVariable("BTN_TXT", $this->lng->txt("cont_export_files"));
$this->tpl->parseCurrentBlock();
// load files templates
$this->tpl->setVariable("ADM_CONTENT",
nl2br(file_get_contents($this->object->getExportDirectory()."/export.log")));
$this->tpl->parseCurrentBlock();*/
}
ilObjGlossaryGUI::viewObject ( )

list childs of current object

public

Reimplemented from ilObjectGUI.

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

References $_GET, and ilFrameTargetInfo\_getFrame().

Referenced by view().

{
global $rbacsystem;
if (strtolower($_GET["baseClass"]) == "iladministrationgui")
{
return;
}
if (!$rbacsystem->checkAccess("visible,read",$this->object->getRefId()))
{
$this->ilias->raiseError($this->lng->txt("permission_denied"),$this->ilias->error_obj->MESSAGE);
}
// edit button
$this->tpl->addBlockfile("BUTTONS", "buttons", "tpl.buttons.html");
$this->tpl->setCurrentBlock("btn_cell");
$this->tpl->setVariable("BTN_LINK",
"ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=".$this->object->getRefID());
$this->tpl->setVariable("BTN_TARGET"," target=\"".
ilFrameTargetInfo::_getFrame("MainContent")."\" ");
$this->tpl->setVariable("BTN_TXT",$this->lng->txt("view"));
$this->tpl->parseCurrentBlock();
//parent::viewObject();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilObjGlossaryGUI::$admin_tabs

Definition at line 28 of file class.ilObjGlossaryGUI.php.

ilObjGlossaryGUI::$mode

Definition at line 29 of file class.ilObjGlossaryGUI.php.


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