Public Member Functions | Protected Attributes

ilEventFileTableGUI Class Reference

Inheritance diagram for ilEventFileTableGUI:
Collaboration diagram for ilEventFileTableGUI:

Public Member Functions

 __construct ($a_parent_obj, $a_parent_cmd= '')
 Constructor.
 fillRow ($a_set)
 Fill row.

Protected Attributes

 $lng = null
 $ctrl

Detailed Description

Author:
Stefan Meyer <smeyer@databay.de>
Version:
$Id$

Definition at line 35 of file class.ilEventFileTableGUI.php.


Constructor & Destructor Documentation

ilEventFileTableGUI::__construct ( a_parent_obj,
a_parent_cmd = '' 
)

Constructor.

public

Parameters:
 

Reimplemented from ilTable2GUI.

Definition at line 47 of file class.ilEventFileTableGUI.php.

References $ilCtrl, $lng, ilTable2GUI::addColumn(), ilTable2GUI::setDefaultOrderDirection(), ilTable2GUI::setDefaultOrderField(), ilTable2GUI::setFormAction(), and ilTable2GUI::setRowTemplate().

        {
                global $lng,$ilCtrl;
                
                $this->lng = $lng;
                $this->ctrl = $ilCtrl;
                
                parent::__construct($a_parent_obj,$a_parent_cmd);
                $this->addColumn('','f',1);
                $this->addColumn($this->lng->txt('filename'),'filename',"60%");
                $this->addColumn($this->lng->txt('filesize'),'filesize',"20%");
                $this->addColumn($this->lng->txt('filetype'),'filetype',"20%");
                
                $this->setFormAction($this->ctrl->getFormAction($a_parent_obj));
                $this->setRowTemplate("tpl.event_file_row.html","Modules/Course");
                $this->setDefaultOrderField("filname");
                $this->setDefaultOrderDirection("desc");
        }

Here is the call graph for this function:


Member Function Documentation

ilEventFileTableGUI::fillRow ( a_set  ) 

Fill row.

public

Parameters:
 

Reimplemented from ilTable2GUI.

Definition at line 73 of file class.ilEventFileTableGUI.php.

        {
                $this->tpl->setVariable('VAL_ID',$a_set['id']);
                $this->tpl->setVariable('VAL_FILENAME',$a_set['filename']);
                $this->tpl->setVariable('VAL_FILETYPE',$a_set['filetype']);
                $this->tpl->setVariable('VAL_FILESIZE',$a_set['filesize']);
        }


Field Documentation

ilEventFileTableGUI::$ctrl [protected]

Definition at line 38 of file class.ilEventFileTableGUI.php.

ilEventFileTableGUI::$lng = null [protected]

Definition at line 37 of file class.ilEventFileTableGUI.php.

Referenced by __construct().


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