25 private \ilDBInterface
$db;
34 if ($this->db->tableColumnExists(
'adv_mdf_definition',
'field_values')) {
40 $this->db->modifyTableColumn(
'adv_mdf_definition',
'field_values', $field_infos);
46 if (!$this->db->tableColumnExists(
'pg_amd_page_list',
'sdata')) {
52 $this->db->addTableColumn(
'pg_amd_page_list',
'sdata', $field_infos);
58 $query =
'UPDATE pg_amd_page_list ' .
62 $this->db->manipulate(
$query);
67 if (!is_array(
$data)) {
71 foreach (
$data as $idx => $value) {
72 $query =
'SELECT idx from adv_mdf_enum ' .
79 $indexes[] = (
int) $row->idx;
85 $query =
'SELECT idx from adv_mdf_enum ' .
90 $indexes[] = (
int) $row->idx;
100 $query =
'SELECT id, pg.field_id, data, field_type FROM pg_amd_page_list pg ' .
101 'JOIN adv_mdf_definition adv ' .
102 'ON pg.field_id = adv.field_id ' .
103 'WHERE sdata IS null ';
106 if ($row->field_type == 1 || $row->field_type == 8) {
109 (
int) $row->field_id,
111 (
int) $row->field_id,
112 unserialize(unserialize($row->data))
118 (
int) $row->field_id,
119 unserialize(unserialize($row->data))
127 $this->db->modifyTableColumn(
128 'adv_md_values_extlink',
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins