ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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 ()
 
 prepare (\ilDBInterface $db)
 Prepare the execution of the steps. More...
 

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.

◆ step_1()

ilLearningSequenceRegisterNotificationType::step_1 ( )

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

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

References ilLSCompletionNotificationProvider\NOTIFICATION_TYPE.

◆ step_2()

ilLearningSequenceRegisterNotificationType::step_2 ( )

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

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 }

References ilLSCompletionNotificationProvider\NOTIFICATION_TYPE.

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: