23     protected \ilDBInterface 
$db;
    32         if (!$this->db->tableExists(
'style_char_title')) {
    56             $this->db->createTable(
'style_char_title', $fields);
    57             $this->db->addPrimaryKey(
'style_char_title', [
'type', 
'characteristic', 
'lang']);
    63         $this->db->dropPrimaryKey(
'style_char_title');
    64         if (!$this->db->tableColumnExists(
'style_char_title', 
'style_id')) {
    65             $this->db->addTableColumn(
'style_char_title', 
'style_id', array(
    71         $this->db->addPrimaryKey(
'style_char_title', [
'style_id', 
'type', 
'characteristic', 
'lang']);
    76         if (!$this->db->tableColumnExists(
'style_char', 
'order_nr')) {
    77             $this->db->addTableColumn(
'style_char', 
'order_nr', array(
    88         if (!$this->db->tableColumnExists(
'style_char', 
'deprecated')) {
    89             $this->db->addTableColumn(
'style_char', 
'deprecated', array(
   100         $this->db->renameTableColumn(
'style_char', 
"deprecated", 
'outdated');
   105         if (!$this->db->tableExists(
'sty_rep_container')) {
   121             $this->db->createTable(
'sty_rep_container', $fields);
   122             $this->db->addPrimaryKey(
'sty_rep_container', [
'ref_id']);
   128         $set = $this->db->queryF(
   129             "SELECT * FROM content_object ",
   133         while ($rec = $this->db->fetchAssoc($set)) {
   137                     "obj_id" => array(
"integer", (
int) $rec[
"id"])
   140                     "style_id" => array(
"integer", (
int) $rec[
"stylesheet"])
   148         $set = $this->db->queryF(
   149             "SELECT * FROM content_page_data ",
   153         while ($rec = $this->db->fetchAssoc($set)) {
   157                     "obj_id" => array(
"integer", (
int) $rec[
"content_page_id"])),
   159                     "style_id" => array(
"integer", (
int) $rec[
"stylesheet"]))
   166         if (!$this->db->tableColumnExists(
'style_data', 
'owner_obj')) {
   167             $this->db->addTableColumn(
'style_data', 
'owner_obj', array(
   178         $set = $this->db->queryF(
   179             "SELECT * FROM style_data WHERE standard = %s",
   183         while ($rec = $this->db->fetchAssoc($set)) {
   184             $set2 = $this->db->queryF(
   185                 "SELECT * FROM style_usage " .
   186                 " WHERE style_id = %s ",
   190             while ($rec2 = $this->db->fetchAssoc($set2)) {
   194                     "owner_obj" => [
"integer", $rec2[
"obj_id"]]
   197                         "id" => [
"integer", $rec[
"id"]]
   207         if (!$this->db->indexExistsByFields(
'style_template', [
'style_id'])) {
   208             $this->db->addIndex(
'style_template', [
'style_id'], 
'i1');
   215         if (!$this->db->indexExistsByFields(
'style_usage', array(
'style_id'))) {
   216             $this->db->addIndex(
'style_usage', array(
'style_id'), 
'i1');
   225             "tag" => [
"text", 
"p"]
   228                 "type" => [
"text", 
"text_block"],
   229                 "tag" => [
"text", 
"div"]
   239             "uptodate" => [
"integer", 0]
   242                 "uptodate" => [
"integer", 1]
   252             "type" => [
"text", 
"strong"]
   255                 "type" => [
"text", 
"text_inline"],
   256                 "characteristic" => [
"text", 
"Strong"]
   266             "tag" => [
"text", 
"strong"],
   267             "type" => [
"text", 
"strong"]
   270                 "type" => [
"text", 
"text_inline"],
   271                 "tag" => [
"text", 
"span"],
   272                 "class" => [
"text", 
"Strong"]
   282             "type" => [
"text", 
"em"]
   285                 "type" => [
"text", 
"text_inline"],
   286                 "characteristic" => [
"text", 
"Emph"]
   296             "tag" => [
"text", 
"em"],
   297             "type" => [
"text", 
"em"]
   300                 "type" => [
"text", 
"text_inline"],
   301                 "tag" => [
"text", 
"span"],
   302                 "class" => [
"text", 
"Emph"]
   312             "uptodate" => [
"integer", 0]
   315                 "uptodate" => [
"integer", 1]
   325                 "uptodate" => [
"integer", 0]
   328                  "uptodate" => [
"integer", 1]
   335         if (!$this->db->tableColumnExists(
'style_data', 
'rid')) {
   336             $this->db->addTableColumn(
'style_data', 
'rid', [
 
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...
 
prepare(\ilDBInterface $db)
Prepare the execution of the steps.