ListGUI class for exercise objects. More...
Public Member Functions | |
ilObjExerciseListGUI () | |
constructor | |
init () | |
initialisation | |
initItem ($a_ref_id, $a_obj_id, $a_title="", $a_description="") | |
inititialize new item | |
getCommandFrame ($a_cmd) | |
Get command target frame. | |
getProperties () | |
Get item properties. | |
getCommandLink ($a_cmd) | |
Get command link url. |
ListGUI class for exercise objects.
Definition at line 34 of file class.ilObjExerciseListGUI.php.
ilObjExerciseListGUI::getCommandFrame | ( | $ | a_cmd | ) |
Get command target frame.
string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 85 of file class.ilObjExerciseListGUI.php.
References ilFrameTargetInfo::_getFrame().
{ switch($a_cmd) { default: $frame = ilFrameTargetInfo::_getFrame("MainContent"); break; } return $frame; }
ilObjExerciseListGUI::getCommandLink | ( | $ | a_cmd | ) |
Get command link url.
int | $a_ref_id reference id | |
string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 128 of file class.ilObjExerciseListGUI.php.
{ // separate method for this line $cmd_link = "exercise.php?ref_id=".$this->ref_id."&cmd=$a_cmd"; return $cmd_link; }
ilObjExerciseListGUI::getProperties | ( | ) |
Get item properties.
Definition at line 107 of file class.ilObjExerciseListGUI.php.
References $lng, and ilObjExerciseAccess::_lookupRemainingWorkingTimeString().
{ global $lng, $ilUser; $props = array(); $props[] = array( "property" => $this->lng->txt("exc_time_to_send"), "value" => ilObjExerciseAccess::_lookupRemainingWorkingTimeString($this->obj_id) ); return $props; }
ilObjExerciseListGUI::ilObjExerciseListGUI | ( | ) |
constructor
Definition at line 39 of file class.ilObjExerciseListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{ $this->ilObjectListGUI(); }
ilObjExerciseListGUI::init | ( | ) |
initialisation
Reimplemented from ilObjectListGUI.
Definition at line 47 of file class.ilObjExerciseListGUI.php.
References ilObjExerciseAccess::_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 = "exc"; $this->gui_class_name = "ilobjexercisegui"; // general commands array include_once('class.ilObjExerciseAccess.php'); $this->commands = ilObjExerciseAccess::_getCommands(); }
ilObjExerciseListGUI::initItem | ( | $ | a_ref_id, | |
$ | a_obj_id, | |||
$ | a_title = "" , |
|||
$ | a_description = "" | |||
) |
inititialize new item
int | $a_ref_id reference id | |
int | $a_obj_id object id | |
string | $a_title title | |
string | $a_description description |
Reimplemented from ilObjectListGUI.
Definition at line 72 of file class.ilObjExerciseListGUI.php.
{ parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description); }