4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
28 $this->
setTitle($this->lng->txt(
'ps_cdf_data_fields'));
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%');
36 $this->
addMultiCommand(
'confirmDeleteFields', $this->lng->txt(
'delete'));
44 $this->
enable(
'select_all');
46 $this->
setRowTemplate(
'tpl.mem_cust_user_data_table_row.html',
'Services/Membership');
56 $this->tpl->setVariable(
'VAL_ID',
$row[
'field_id']);
57 $this->tpl->setVariable(
'VAL_NAME',
$row[
'name']);
58 $this->tpl->setVariable(
'VAL_TYPE',
$row[
'type']);
59 $this->tpl->setVariable(
'REQUIRED_CHECKED',
$row[
'required'] ?
'checked="checked"' :
'');
62 $this->tpl->setVariable(
'EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),
'editField'));
63 $this->tpl->setVariable(
'TXT_EDIT',$this->lng->txt(
'edit'));
74 foreach($a_defs as $def)
76 $rows[$def->getId()][
'field_id'] = $def->getId();
77 $rows[$def->getId()][
'name'] = $def->getName();
79 switch($def->getType())
82 $rows[$def->getId()][
'type'] = $this->lng->txt(
'ps_type_select');
86 $rows[$def->getId()][
'type'] = $this->lng->txt(
'ps_type_text');
90 $rows[$def->getId()][
'required'] = (bool) $def->isRequired();