32 $this->database = $db;
37 if ($this->database->tableColumnExists(
'il_bibl_field',
'object_id')) {
38 $this->database->dropTableColumn(
'il_bibl_field',
'object_id');
50 if ($this->database->tableColumnExists(
'il_bibl_data',
'is_online')
51 && $this->database->tableColumnExists(
'object_data',
'offline')
53 $bibl_data = $this->database->fetchAll(
54 $this->database->query(
'SELECT * FROM il_bibl_data')
56 foreach ($bibl_data as $bibl_data_entry) {
57 if (isset($bibl_data_entry[
'is_online'])) {
58 $query =
"UPDATE `object_data` SET `offline` = %s WHERE `obj_id` = %s AND `type` = %s AND `offline` IS NULL";
59 $this->database->manipulateF(
61 [
'integer',
'integer',
'text'],
63 !$bibl_data_entry[
'is_online'],
64 $bibl_data_entry[
'id'],
70 $this->database->dropTableColumn(
'il_bibl_data',
'is_online');
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
step_2()
This step serves the transfer from the old object specific online status implementation to the new ce...
prepare(ilDBInterface $db)