ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilLearningSequenceRegisterNotificationType Class Reference
+ Inheritance diagram for ilLearningSequenceRegisterNotificationType:
+ Collaboration diagram for ilLearningSequenceRegisterNotificationType:

Public Member Functions

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

Protected Attributes

ilDBInterface $db
 

Detailed Description

Member Function Documentation

◆ prepare()

ilLearningSequenceRegisterNotificationType::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 class.ilLearningSequenceRegisterNotificationType.php.

References $db.

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

◆ step_1()

ilLearningSequenceRegisterNotificationType::step_1 ( )

Definition at line 30 of file class.ilLearningSequenceRegisterNotificationType.php.

References ilLSCompletionNotificationProvider\NOTIFICATION_TYPE.

30  : void
31  {
33  ilNotificationSetupHelper::registerType($this->db, $type, $type, $type . '_description', 'lso', 'set_by_admin');
34  }

◆ step_2()

ilLearningSequenceRegisterNotificationType::step_2 ( )

Definition at line 36 of file class.ilLearningSequenceRegisterNotificationType.php.

References ilLSCompletionNotificationProvider\NOTIFICATION_TYPE.

36  : void
37  {
39  $this->db->insert(
40  'notification_usercfg',
41  [
42  'usr_id' => ['integer', -1],
43  'module' => ['text', $type],
44  'channel' => ['text', 'osd']
45  ]
46  );
47  }

Field Documentation

◆ $db

ilDBInterface ilLearningSequenceRegisterNotificationType::$db
protected

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

Referenced by prepare().


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