Public Member Functions

ilObjFileListGUI Class Reference
[Modules/File]

Class ilObjFileListGUI. More...

Inheritance diagram for ilObjFileListGUI:
Collaboration diagram for ilObjFileListGUI:

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.

Detailed Description

Class ilObjFileListGUI.

Author:
Alex Killing <alex.killing@gmx.de>
Id:
class.ilObjFileListGUI.php 11692 2006-07-29 23:35:47Z akill

Definition at line 34 of file class.ilObjFileListGUI.php.


Member Function Documentation

ilObjFileListGUI::getCommandFrame ( a_cmd  ) 

Get command target frame.

Parameters:
string $a_cmd command
Returns:
string command target frame

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;
        }

Here is the call graph for this function:

ilObjFileListGUI::getProperties (  ) 

Get item properties.

Returns:
array array of property arrays: "alert" (boolean) => display as an alert property (usually in red) "property" (string) => property name "value" (string) => property value

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;
        }

Here is the call graph for this function:

ilObjFileListGUI::ilObjFileListGUI (  ) 

constructor

Definition at line 40 of file class.ilObjFileListGUI.php.

References ilObjectListGUI::ilObjectListGUI().

        {
                $this->ilObjectListGUI();
        }

Here is the call graph for this function:

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();
        }

Here is the call graph for this function:

ilObjFileListGUI::initItem ( a_ref_id,
a_obj_id,
a_title = "",
a_description = "" 
)

inititialize new item

Parameters:
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);
        }


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