Class ilObjFileListGUI. More...
Public Member Functions | |
ilObjFileListGUI () | |
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. |
Class ilObjFileListGUI.
Definition at line 34 of file class.ilObjFileListGUI.php.
ilObjFileListGUI::getCommandFrame | ( | $ | a_cmd | ) |
Get command target frame.
string | $a_cmd command |
Reimplemented from ilObjectListGUI.
Definition at line 86 of file class.ilObjFileListGUI.php.
References ilFrameTargetInfo::_getFrame().
{ switch($a_cmd) { case "": $frame = ilFrameTargetInfo::_getFrame("RepositoryContent"); break; default: } return $frame; }
ilObjFileListGUI::getProperties | ( | ) |
Get item properties.
Definition at line 110 of file class.ilObjFileListGUI.php.
References $lng, ilObjFileAccess::_lookupFileSize(), ilObject::_lookupLastUpdate(), ilObjFileAccess::_lookupSuffix(), and ilObjFileAccess::_lookupVersion().
{ global $lng, $ilUser; $props = array(); // to do: implement extra smaller file info object include_once("classes/class.ilObjFileAccess.php"); $props[] = array("alert" => false, "property" => $lng->txt("type"), "value" => ilObjFileAccess::_lookupSuffix($this->obj_id)); $props[] = array("alert" => false, "property" => $lng->txt("size"), "value" => ilObjFileAccess::_lookupFileSize($this->obj_id, true)); $props[] = array("alert" => false, "property" => $lng->txt("last_update"), "value" => ilObject::_lookupLastUpdate($this->obj_id, true)); $props[] = array("alert" => false, "property" => $lng->txt("version"), "value" => ilObjFileAccess::_lookupVersion($this->obj_id)); return $props; }
ilObjFileListGUI::ilObjFileListGUI | ( | ) |
constructor
Definition at line 40 of file class.ilObjFileListGUI.php.
References ilObjectListGUI::ilObjectListGUI().
{ $this->ilObjectListGUI(); }
ilObjFileListGUI::init | ( | ) |
initialisation
Reimplemented from ilObjectListGUI.
Definition at line 48 of file class.ilObjFileListGUI.php.
References ilObjFileAccess::_getCommands().
{ $this->delete_enabled = true; $this->cut_enabled = true; $this->subscribe_enabled = true; $this->link_enabled = true; $this->payment_enabled = true; $this->info_screen_enabled = true; $this->type = "file"; $this->gui_class_name = "ilobjfilegui"; // general commands array include_once('class.ilObjFileAccess.php'); $this->commands = ilObjFileAccess::_getCommands(); }
ilObjFileListGUI::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 73 of file class.ilObjFileListGUI.php.
{ parent::initItem($a_ref_id, $a_obj_id, $a_title, $a_description); }