Class ilObjGlossaryListGUI. More...
Inheritance diagram for ilObjGlossaryListGUI:
Collaboration diagram for ilObjGlossaryListGUI: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 104 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;
}
Here is the call graph for this function:| 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 77 of file class.ilObjGlossaryListGUI.php.
{
switch($a_cmd)
{
case "view":
$cmd_link = "content/glossary_presentation.php?ref_id=".$this->ref_id;
break;
case "edit":
$cmd_link = "content/glossary_edit.php?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 132 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;
}
Here is the call graph for this function:| ilObjGlossaryListGUI::ilObjGlossaryListGUI | ( | ) |
constructor
Definition at line 43 of file class.ilObjGlossaryListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{
$this->ilObjectListGUI();
}
Here is the call graph for this function:| 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->type = "glo";
$this->gui_class_name = "ilobjglossarygui";
// general commands array
include_once('class.ilObjGlossaryAccess.php');
$this->commands = ilObjGlossaryAccess::_getCommands();
}
Here is the call graph for this function:
1.7.1