3 declare(strict_types=1);
30 public function __construct(
object $a_parent_obj,
string $a_parent_cmd)
37 '_custom_user_fields_table_title' 41 $this->
addColumn($this->
lng->txt(
'ps_cdf_name'),
'name',
'30%');
42 $this->
addColumn($this->
lng->txt(
'ps_cdf_type'),
'type',
'30%');
43 $this->
addColumn($this->
lng->txt(
'ps_cdf_required'),
'',
'20%');
57 $this->
enable(
'select_all');
59 $this->
setRowTemplate(
'tpl.mem_cust_user_data_table_row.html',
'Services/Membership');
65 protected function fillRow(array $a_set): void
67 $this->tpl->setVariable(
'VAL_ID', $a_set[
'field_id']);
68 $this->tpl->setVariable(
'VAL_NAME', $a_set[
'name']);
69 $this->tpl->setVariable(
'VAL_TYPE', $a_set[
'type']);
70 $this->tpl->setVariable(
'REQUIRED_CHECKED', $a_set[
'required'] ?
'checked="checked"' :
'');
73 $this->tpl->setVariable(
'EDIT_LINK', $this->
ctrl->getLinkTarget($this->getParentObject(),
'editField'));
74 $this->tpl->setVariable(
'TXT_EDIT', $this->
lng->txt(
'edit'));
80 public function parse(array $a_defs): void
83 foreach ($a_defs as $def) {
84 $rows[$def->getId()][
'field_id'] = $def->getId();
85 $rows[$def->getId()][
'name'] = $def->getName();
87 switch ($def->getType()) {
89 $rows[$def->getId()][
'type'] = $this->
lng->txt(
'ps_type_select');
93 $rows[$def->getId()][
'type'] = $this->
lng->txt(
'ps_type_text');
97 $rows[$def->getId()][
'required'] = $def->isRequired();
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
__construct(object $a_parent_obj, string $a_parent_cmd)
Constructor.
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setDefaultOrderDirection(string $a_defaultorderdirection)
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
static _lookupType(int $id, bool $reference=false)
addMultiCommand(string $a_cmd, string $a_text)