19 declare(strict_types=1);
37 if ($this->db->tableExists(
'gs_footer_items')) {
38 $this->db->dropTable(
'gs_footer_items');
44 if ($this->db->tableExists(
'gs_footer_items')) {
47 $this->db->createTable(
50 'id' => [
'type' =>
'text',
'length' => 255,
'notnull' =>
true],
51 'type' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true],
52 'title' => [
'type' =>
'text',
'length' => 4000,
'notnull' =>
true],
53 'position' => [
'type' =>
'integer',
'length' => 4,
'notnull' =>
true],
54 'is_active' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true],
55 'parent' => [
'type' =>
'text',
'length' => 255,
'notnull' =>
false],
56 'action' => [
'type' =>
'text',
'length' => 4000,
'notnull' =>
false],
57 'external' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
false],
58 'core' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true],
65 if ($this->db->tableExists(
'gs_item_translation')) {
68 $this->db->createTable(
69 'gs_item_translation',
71 'id' => [
'type' =>
'text',
'length' => 255,
'notnull' =>
true],
72 'language_code' => [
'type' =>
'text',
'length' => 4,
'notnull' =>
true],
73 'translation' => [
'type' =>
'text',
'length' => 4000,
'notnull' =>
true],
74 'status' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true,
'default' => 0],
77 $this->db->addPrimaryKey(
'gs_item_translation', [
'id',
'language_code']);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...