ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSoapWsdlPathUpdateStep Class Reference
+ Inheritance diagram for ilSoapWsdlPathUpdateStep:
+ Collaboration diagram for ilSoapWsdlPathUpdateStep:

Public Member Functions

 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 
 step_1 ()
 

Protected Attributes

ilDBInterface $db
 

Detailed Description

Definition at line 21 of file ilSoapWsdlPathUpdateStep.php.

Member Function Documentation

◆ prepare()

ilSoapWsdlPathUpdateStep::prepare ( \ilDBInterface  $db)

Prepare the execution of the steps.

Do not use anything from the globals or the DIC inside your steps, only use the instance of the database provided here.

Implements ilDatabaseUpdateSteps.

Definition at line 25 of file ilSoapWsdlPathUpdateStep.php.

References $db.

25  : void
26  {
27  $this->db = $db;
28  }

◆ step_1()

ilSoapWsdlPathUpdateStep::step_1 ( )

Definition at line 30 of file ilSoapWsdlPathUpdateStep.php.

30  : void
31  {
32  if ($this->db->tableExists('settings')) {
33  $query = "UPDATE settings SET " . PHP_EOL
34  . " value = REPLACE(value, '/webservice/', '/public/') " . PHP_EOL
35  . " WHERE keyword = 'soap_wsdl_path' " . PHP_EOL
36  . " AND value LIKE ('%webservice%')";
37 
38  $this->db->manipulate($query);
39  }
40  }

Field Documentation

◆ $db

ilDBInterface ilSoapWsdlPathUpdateStep::$db
protected

Definition at line 23 of file ilSoapWsdlPathUpdateStep.php.

Referenced by prepare().


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