ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjPersistentCertificateVerificationGUI Class Reference
+ Collaboration diagram for ilObjPersistentCertificateVerificationGUI:

Public Member Functions

 __construct (?Container $dic=null, ?ilPortfolioCertificateFileService $fileService=null, ?ilLanguage $language=null)
 
 downloadFromPortfolioPage (ilPortfolioPage $a_page, int $objectId, int $userId)
 

Private Attributes

readonly ilPortfolioCertificateFileService $fileService
 
readonly ilLanguage $language
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjPersistentCertificateVerificationGUI::__construct ( ?Container  $dic = null,
?ilPortfolioCertificateFileService  $fileService = null,
?ilLanguage  $language = null 
)

Definition at line 31 of file class.ilObjPersistentCertificateVerificationGUI.php.

35 {
36 if (null === $dic) {
37 global $DIC;
38 $dic = $DIC;
39 }
40
41 if (null === $fileService) {
43 }
44 $this->fileService = $fileService;
45
46 if (null === $language) {
47 $language = $dic->language();
48 }
49 $this->language = $language;
50 }
$dic
Definition: ltiresult.php:33
global $DIC
Definition: shib_login.php:26

References $DIC, $dic, $fileService, $language, and ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

Member Function Documentation

◆ downloadFromPortfolioPage()

ilObjPersistentCertificateVerificationGUI::downloadFromPortfolioPage ( ilPortfolioPage  $a_page,
int  $objectId,
int  $userId 
)
Exceptions
ilException
ilFileUtilsException

Definition at line 56 of file class.ilObjPersistentCertificateVerificationGUI.php.

56 : void
57 {
58 if (ilPCVerification::isInPortfolioPage($a_page, 'crta', $objectId)) {
59 $this->fileService->deliverCertificate($userId, $objectId);
60 }
61
62 throw new ilException($this->language->txt('permission_denied'));
63 }
Base class for ILIAS Exception handling.
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)

References ilPCVerification\isInPortfolioPage(), and ILIAS\UI\examples\Symbol\Glyph\Language\language().

+ Here is the call graph for this function:

Field Documentation

◆ $fileService

readonly ilPortfolioCertificateFileService ilObjPersistentCertificateVerificationGUI::$fileService
private

Definition at line 28 of file class.ilObjPersistentCertificateVerificationGUI.php.

Referenced by __construct().

◆ $language

readonly ilLanguage ilObjPersistentCertificateVerificationGUI::$language
private

Definition at line 29 of file class.ilObjPersistentCertificateVerificationGUI.php.

Referenced by __construct().


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