ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilPDFGenerationDB90 Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilPDFGenerationDB90:
+ Collaboration diagram for ilPDFGenerationDB90:

Public Member Functions

 prepare (ilDBInterface $db)
 
 step_1 ()
 
 step_2 ()
 
 step_3 ()
 
 step_4 ()
 
 step_5 ()
 
 step_6 ()
 
 step_7 ()
 
 step_8 ()
 
 step_9 ()
 
 step_10 ()
 
 step_11 ()
 
 step_12 ()
 
 step_13 ()
 
 step_14 ()
 
- Public Member Functions inherited from ilDatabaseUpdateSteps
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 19 of file class.ilPDFGenerationDB90.php.

Member Function Documentation

◆ prepare()

ilPDFGenerationDB90::prepare ( ilDBInterface  $db)

Definition at line 23 of file class.ilPDFGenerationDB90.php.

References $db.

23  : void
24  {
25  $this->db = $db;
26  }

◆ step_1()

ilPDFGenerationDB90::step_1 ( )

Definition at line 28 of file class.ilPDFGenerationDB90.php.

28  : void
29  {
30  if ($this->db->tableExists('pdfgen_conf')) {
31  $this->db->dropTable('pdfgen_conf');
32  }
33  }

◆ step_10()

ilPDFGenerationDB90::step_10 ( )

Definition at line 86 of file class.ilPDFGenerationDB90.php.

86  : void
87  {
88  if ($this->db->tableExists('pdfgen_renderer_avail_seq')) {
89  $this->db->dropTable('pdfgen_renderer_avail_seq');
90  }
91  }

◆ step_11()

ilPDFGenerationDB90::step_11 ( )

Definition at line 93 of file class.ilPDFGenerationDB90.php.

93  : void
94  {
95  $this->db->manipulateF('DELETE FROM il_object_subobj WHERE subobj = %s',
96  array('text'),
97  array('pdfg')
98  );
99  }

◆ step_12()

ilPDFGenerationDB90::step_12 ( )

Definition at line 101 of file class.ilPDFGenerationDB90.php.

101  : void
102  {
103  $this->db->manipulateF('DELETE FROM il_object_def WHERE id = %s',
104  array('text'),
105  array('pdfg')
106  );
107  }

◆ step_13()

ilPDFGenerationDB90::step_13 ( )

Definition at line 109 of file class.ilPDFGenerationDB90.php.

References $res.

109  : void
110  {
111  $res = $this->db->queryF(
112  'SELECT obj_id FROM object_data WHERE type = %s AND title = %s',
113  array('text', 'text'),
114  array('typ', 'pdfg')
115  );
116  $row = $this->db->fetchAssoc($res);
117 
118  if (is_array($row) && isset($row['obj_id'])) {
119  $obj_id = $row['obj_id'];
120 
121  $this->db->manipulateF(
122  'DELETE FROM rbac_ta WHERE typ_id = %s',
123  array('integer'),
124  array($obj_id)
125  );
126 
127  $this->db->manipulateF(
128  'DELETE FROM object_data WHERE obj_id = %s',
129  array('integer'),
130  array($obj_id)
131  );
132  }
133  }
$res
Definition: ltiservices.php:69

◆ step_14()

ilPDFGenerationDB90::step_14 ( )

Definition at line 135 of file class.ilPDFGenerationDB90.php.

135  : void
136  {
137  $this->db->manipulateF('DELETE FROM object_data WHERE type = %s',
138  array('text'),
139  array('pdfg')
140  );
141  }

◆ step_2()

ilPDFGenerationDB90::step_2 ( )

Definition at line 35 of file class.ilPDFGenerationDB90.php.

35  : void
36  {
37  if ($this->db->tableExists('pdfgen_map')) {
38  $this->db->dropTable('pdfgen_map');
39  }
40  }

◆ step_3()

ilPDFGenerationDB90::step_3 ( )

Definition at line 41 of file class.ilPDFGenerationDB90.php.

41  : void
42  {
43  if ($this->db->tableExists('pdfgen_purposes')) {
44  $this->db->dropTable('pdfgen_purposes');
45  }
46  }

◆ step_4()

ilPDFGenerationDB90::step_4 ( )

Definition at line 48 of file class.ilPDFGenerationDB90.php.

48  : void
49  {
50  if ($this->db->tableExists('pdfgen_renderer')) {
51  $this->db->dropTable('pdfgen_renderer');
52  }
53  }

◆ step_5()

ilPDFGenerationDB90::step_5 ( )

Definition at line 54 of file class.ilPDFGenerationDB90.php.

54  : void
55  {
56  if ($this->db->tableExists('pdfgen_renderer_avail')) {
57  $this->db->dropTable('pdfgen_renderer_avail');
58  }
59  }

◆ step_6()

ilPDFGenerationDB90::step_6 ( )

Definition at line 60 of file class.ilPDFGenerationDB90.php.

60  : void
61  {
62  if ($this->db->tableExists('pdfgen_conf_seq')) {
63  $this->db->dropTable('pdfgen_conf_seq');
64  }
65  }

◆ step_7()

ilPDFGenerationDB90::step_7 ( )

Definition at line 67 of file class.ilPDFGenerationDB90.php.

67  : void
68  {
69  if ($this->db->tableExists('pdfgen_map_seq')) {
70  $this->db->dropTable('pdfgen_map_seq');
71  }
72  }

◆ step_8()

ilPDFGenerationDB90::step_8 ( )

Definition at line 73 of file class.ilPDFGenerationDB90.php.

73  : void
74  {
75  if ($this->db->tableExists('pdfgen_purposes_seq')) {
76  $this->db->dropTable('pdfgen_purposes_seq');
77  }
78  }

◆ step_9()

ilPDFGenerationDB90::step_9 ( )

Definition at line 80 of file class.ilPDFGenerationDB90.php.

80  : void
81  {
82  if ($this->db->tableExists('pdfgen_renderer_seq')) {
83  $this->db->dropTable('pdfgen_renderer_seq');
84  }
85  }

Field Documentation

◆ $db

ilDBInterface ilPDFGenerationDB90::$db
protected

Definition at line 21 of file class.ilPDFGenerationDB90.php.

Referenced by prepare().


The documentation for this class was generated from the following file: