ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCertificateMigrationReducedInteraction.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
11  protected $log;
12 
17  public function __construct(
18  \ilLogger $log = null
19  ) {
20  global $DIC;
21 
22  if (null === $log) {
23  $log = $DIC->logger()->cert();
24  }
25  $this->log = $log;
26  }
27 
32  public function getOptions(array $input) : array
33  {
34  return [];
35  }
36 
43  public function interaction(array $input, \ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, \ILIAS\BackgroundTasks\Bucket $bucket)
44  {
45  $progress = $input[0]->getValue();
46  $user_id = $input[1]->getValue();
47 
48  $this->log->debug('User interaction certificate migration for user with id: ' . $user_id);
49  $this->log->debug('User interaction certificate migration State: ' . $bucket->getState());
50  $this->log->info('User interaction certificate migration canceled for user with id: ' . $user_id);
51 
52  return $input;
53  }
54 }
interaction(array $input, \ILIAS\BackgroundTasks\Task\UserInteraction\Option $user_selected_option, \ILIAS\BackgroundTasks\Bucket $bucket)
global $DIC
Definition: saml.php:7
Class BaseForm.
__construct(\ilLogger $log=null)
ilCertificateMigrationReducedInteraction constructor.
Class ilCertificateMigrationInteraction.
Component logger with individual log levels by component id.