14 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
29 public function __construct($a_parent_obj, $a_parent_cmd =
'')
37 $this->
setId(
'shop_topics_settings_tbl');
38 $this->
addColumn($this->lng->txt(
'title'),
'title' ,
'70%');
39 $this->
addColumn($this->lng->txt(
'pay_sorting_value'),
'sorting' ,
'30%');
41 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
42 $this->
setRowTemplate(
'tpl.shop_personal_settings_topics_list_row.html',
'Services/Payment');
56 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
57 $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
58 $this->tpl->setVariable(
'VAL_SORTING_TEXTINPUT',
ilUtil::formInput(
'sorting['.$a_set[
'id'].
']', $a_set[
'sorting'])); }
69 foreach($a_topics as $topic)
71 $tmp_arr[
'id'] = $topic->getId();
72 $tmp_arr[
'title'] = $topic->getTitle();
73 $tmp_arr[
'sorting'] = $topic->getCustomSorting();
75 $records_arr[] = $tmp_arr;
78 if (!count($a_topics))
86 $this->
setData($records_arr ? $records_arr : array());