ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
All Data Structures Namespaces Files Functions Variables Typedefs Modules Pages
class.ilCertificateMigrationRepository.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
8 {
12  private $database;
13 
17  private $logger;
18 
24  {
25  $this->database = $database;
26  $this->logger = $logger;
27  }
28 
32  public function deleteFromMigrationJob(int $userId)
33  {
34  $this->logger->log(sprintf('START - Delete all certificate migration jobs for user(user_id: "%s")', $userId));
35  $sql = 'DELETE FROM il_cert_bgtask_migr WHERE usr_id = ' . $this->database->quote($userId, 'integer');
36 
37  $this->database->manipulate($sql);
38 
39  $this->logger->log(sprintf('END - Delete all certificate migration jobs for user(user_id: "%s")', $userId));
40  }
41 }
__construct(ilDBInterface $database, ilLogger $logger)
Component logger with individual log levels by component id.