4include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
   27        parent::__construct($a_parent_obj, $a_parent_cmd);
 
   29        $this->
setFormAction($this->ctrl->getFormAction($this->getParentObject(), $this->getParentCmd()));
 
   34        $this->
addColumn($this->lng->txt(
'ps_cdf_name'), 
'name', 
'30%');
 
   35        $this->
addColumn($this->lng->txt(
'ps_cdf_type'), 
'type', 
'30%');
 
   36        $this->
addColumn($this->lng->txt(
'ps_cdf_required'), 
'', 
'20%');
 
   42        $this->
addMultiCommand(
'confirmDeleteFields', $this->lng->txt(
'delete'));
 
   50        $this->
enable(
'select_all');
 
   52        $this->
setRowTemplate(
'tpl.mem_cust_user_data_table_row.html', 
'Services/Membership');
 
   62        $this->tpl->setVariable(
'VAL_ID', 
$row[
'field_id']);
 
   63        $this->tpl->setVariable(
'VAL_NAME', 
$row[
'name']);
 
   64        $this->tpl->setVariable(
'VAL_TYPE', 
$row[
'type']);
 
   65        $this->tpl->setVariable(
'REQUIRED_CHECKED', 
$row[
'required'] ? 
'checked="checked"' : 
'');
 
   68        $this->tpl->setVariable(
'EDIT_LINK', $this->ctrl->getLinkTarget($this->getParentObject(), 
'editField'));
 
   69        $this->tpl->setVariable(
'TXT_EDIT', $this->lng->txt(
'edit'));
 
   80        foreach ($a_defs as 
$def) {
 
   84            switch (
$def->getType()) {
 
   86                    $rows[
$def->getId()][
'type'] = $this->lng->txt(
'ps_type_select');
 
   90                    $rows[
$def->getId()][
'type'] = $this->lng->txt(
'ps_type_text');
 
An exception for terminatinating execution or to throw for unit testing.
@classDescription Table presentation of course/group relevant user data fields
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
parse($a_defs)
Parse table data.
static _lookupType($a_id, $a_reference=false)
lookup object type
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
enable($a_module_name)
enables particular modules of table