ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilRadiusDBUpdateSteps 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 ilRadiusDBUpdateSteps:
+ Collaboration diagram for ilRadiusDBUpdateSteps:

Public Member Functions

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

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.ilRadiusDBUpdateSteps.php.

Member Function Documentation

◆ prepare()

ilRadiusDBUpdateSteps::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 23 of file class.ilRadiusDBUpdateSteps.php.

References $db.

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

◆ step_1()

ilRadiusDBUpdateSteps::step_1 ( )

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

28  : void
29  {
30  $this->db->manipulate("UPDATE usr_data " .
31  "SET active=" . $this->db->quote(0, "integer") .
32  ",auth_mode=" . $this->db->quote("local", "text") .
33  ",passwd_enc_type=" . $this->db->quote("bcryptphp", "text") .
34  ",passwd=" . $this->db->quote("dummy", "text") .
35 
36  "WHERE auth_mode=" . $this->db->quote("radius", "text"));
37  }

Field Documentation

◆ $db

ilDBInterface ilRadiusDBUpdateSteps::$db
protected

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

Referenced by prepare().


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