Class ilObjGlossaryListGUI. More...
Public Member Functions | |
ilObjGlossaryListGUI () | |
constructor | |
init () | |
initialisation | |
getCommandLink ($a_cmd) | |
Overwrite this method, if link target is not build by ctrl class (e.g. | |
getCommandFrame ($a_cmd) | |
Get command target frame. | |
getProperties () | |
Get item properties. |
Class ilObjGlossaryListGUI.
Definition at line 37 of file class.ilObjGlossaryListGUI.php.
ilObjGlossaryListGUI::getCommandFrame | ( | $ | a_cmd | ) |
Get command target frame.
string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 109 of file class.ilObjGlossaryListGUI.php.
References $ilias, and ilFrameTargetInfo::_getFrame().
{ global $ilias; switch($a_cmd) { case "view": case "edit": $frame = ilFrameTargetInfo::_getFrame("MainContent"); break; default: $frame = ""; break; } return $frame; }
ilObjGlossaryListGUI::getCommandLink | ( | $ | a_cmd | ) |
Overwrite this method, if link target is not build by ctrl class (e.g.
"lm_presentation.php", "forum.php"). This is the case for all links now, but bringing everything to ilCtrl should be realised in the future.
string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 78 of file class.ilObjGlossaryListGUI.php.
{ switch($a_cmd) { case "view": $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=".$this->ref_id; break; case "edit": $cmd_link = "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".$this->ref_id; break; case "infoScreen": $cmd_link = "ilias.php?baseClass=ilGlossaryPresentationGUI&cmd=infoScreen&ref_id=".$this->ref_id; break; default: $cmd_link = "repository.php?ref_id=".$this->ref_id."&cmd=$a_cmd"; break; } return $cmd_link; }
ilObjGlossaryListGUI::getProperties | ( | ) |
Get item properties.
Definition at line 137 of file class.ilObjGlossaryListGUI.php.
References $lng, $rbacsystem, and ilObjGlossaryAccess::_lookupOnline().
{ global $lng, $rbacsystem; $props = array(); include_once("content/classes/class.ilObjGlossaryAccess.php"); if (!ilObjGlossaryAccess::_lookupOnline($this->obj_id)) { $props[] = array("alert" => true, "property" => $lng->txt("status"), "value" => $lng->txt("offline")); } return $props; }
ilObjGlossaryListGUI::ilObjGlossaryListGUI | ( | ) |
constructor
Definition at line 43 of file class.ilObjGlossaryListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{ $this->ilObjectListGUI(); }
ilObjGlossaryListGUI::init | ( | ) |
initialisation
this method should be overwritten by derived classes
Reimplemented from ilObjectListGUI.
Definition at line 53 of file class.ilObjGlossaryListGUI.php.
References ilObjGlossaryAccess::_getCommands().
{ $this->delete_enabled = true; $this->cut_enabled = true; $this->subscribe_enabled = true; $this->link_enabled = true; $this->payment_enabled = false; $this->info_screen_enabled = true; $this->type = "glo"; $this->gui_class_name = "ilobjglossarygui"; // general commands array include_once('class.ilObjGlossaryAccess.php'); $this->commands = ilObjGlossaryAccess::_getCommands(); }