4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
31 $this->
addColumn($this->lng->txt(
'ps_cdf_name'),
'name',
'30%');
32 $this->
addColumn($this->lng->txt(
'ps_cdf_type'),
'type',
'30%');
33 $this->
addColumn($this->lng->txt(
'ps_cdf_required'),
'',
'20%');
39 $this->
addMultiCommand(
'confirmDeleteFields', $this->lng->txt(
'delete'));
47 $this->
enable(
'select_all');
49 $this->
setRowTemplate(
'tpl.mem_cust_user_data_table_row.html',
'Services/Membership');
59 $this->tpl->setVariable(
'VAL_ID',
$row[
'field_id']);
60 $this->tpl->setVariable(
'VAL_NAME',
$row[
'name']);
61 $this->tpl->setVariable(
'VAL_TYPE',
$row[
'type']);
62 $this->tpl->setVariable(
'REQUIRED_CHECKED',
$row[
'required'] ?
'checked="checked"' :
'');
65 $this->tpl->setVariable(
'EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),
'editField'));
66 $this->tpl->setVariable(
'TXT_EDIT',$this->lng->txt(
'edit'));
77 foreach($a_defs as $def)
79 $rows[$def->getId()][
'field_id'] = $def->getId();
80 $rows[$def->getId()][
'name'] = $def->getName();
82 switch($def->getType())
85 $rows[$def->getId()][
'type'] = $this->lng->txt(
'ps_type_select');
89 $rows[$def->getId()][
'type'] = $this->lng->txt(
'ps_type_text');
93 $rows[$def->getId()][
'required'] = (bool) $def->isRequired();