ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCertificateCloneAction Class Reference
+ Collaboration diagram for ilCertificateCloneAction:

Public Member Functions

 __construct (ilDBInterface $database, ilCertificateFactory $certificateFactory, ilCertificateTemplateRepository $templateRepository, \ILIAS\Filesystem\Filesystem $fileSystem=null, ilLogger $logger=null, ilCertificateObjectHelper $objectHelper=null)
 

Private Member Functions

 readActive (int $objectId)
 

Private Attributes

 $logger
 
 $certificateFactory
 
 $templateRepository
 
 $database
 
 $fileSystem
 
 $objectHelper
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCertificateCloneAction::__construct ( ilDBInterface  $database,
ilCertificateFactory  $certificateFactory,
ilCertificateTemplateRepository  $templateRepository,
\ILIAS\Filesystem\Filesystem  $fileSystem = null,
ilLogger  $logger = null,
ilCertificateObjectHelper  $objectHelper = null 
)
Parameters
ilDBInterface$database
ilCertificateFactory$certificateFactory
ilCertificateTemplateRepository$templateRepository
\ILIAS\Filesystem\Filesystem | null$fileSystem
illLogger$logger
ilCertificateObjectHelper | null$objectHelper
string$rootDirectory

Definition at line 48 of file class.ilCertificateCloneAction.php.

References $certificateFactory, $database, $DIC, $fileSystem, $logger, $objectHelper, $template, $templateRepository, ilObject\getId(), ilObject\getType(), ILIAS_VERSION_NUMERIC, and readActive().

55  {
56  $this->database = $database;
57  $this->certificateFactory = $certificateFactory;
58  $this->templateRepository = $templateRepository;
59 
60  if (null === $logger) {
61  global $DIC;
62  $logger = $DIC->logger()->cert();
63  }
64  $this->logger = $logger;
65 
66  if (null === $fileSystem) {
67  global $DIC;
68  $fileSystem = $DIC->filesystem()->web();
69  }
70  $this->fileSystem = $fileSystem;
71 
72  if (null === $objectHelper) {
73  $objectHelper = new ilCertificateObjectHelper();
74  }
75  $this->objectHelper = $objectHelper;
76  }
global $DIC
Definition: saml.php:7
+ Here is the call graph for this function:

Member Function Documentation

◆ readActive()

ilCertificateCloneAction::readActive ( int  $objectId)
private
Parameters
integer$objectId
Returns
int

Definition at line 198 of file class.ilCertificateCloneAction.php.

References $query.

Referenced by __construct().

198  : int
199  {
200  $sql = 'SELECT obj_id FROM il_certificate WHERE obj_id = ' . $this->database->quote($objectId, 'integer');
201 
202  $query = $this->database->query($sql);
203 
204  return $this->database->numRows($query);
205  }
$query
+ Here is the caller graph for this function:

Field Documentation

◆ $certificateFactory

ilCertificateCloneAction::$certificateFactory
private

Definition at line 17 of file class.ilCertificateCloneAction.php.

Referenced by __construct().

◆ $database

ilCertificateCloneAction::$database
private

Definition at line 27 of file class.ilCertificateCloneAction.php.

Referenced by __construct().

◆ $fileSystem

ilCertificateCloneAction::$fileSystem
private

Definition at line 32 of file class.ilCertificateCloneAction.php.

Referenced by __construct().

◆ $logger

ilCertificateCloneAction::$logger
private

Definition at line 12 of file class.ilCertificateCloneAction.php.

Referenced by __construct().

◆ $objectHelper

ilCertificateCloneAction::$objectHelper
private

Definition at line 37 of file class.ilCertificateCloneAction.php.

Referenced by __construct().

◆ $templateRepository

ilCertificateCloneAction::$templateRepository
private

Definition at line 22 of file class.ilCertificateCloneAction.php.

Referenced by __construct().


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