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

Public Member Functions

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

Private Attributes

 $dic
 
 $fileService
 
 $language
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjPersistentCertificateVerificationGUI::__construct ( \ILIAS\DI\Container  $dic = null,
ilPortfolioCertificateFileService  $fileService = null,
ilLanguage  $language = null 
)

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

References $DIC, $dic, $fileService, and $language.

28  {
29  if (null === $dic) {
30  global $DIC;
31  $dic = $DIC;
32  }
33  $this->dic = $dic;
34 
35  if (null === $fileService) {
36  $fileService = new ilPortfolioCertificateFileService();
37  }
38  $this->fileService = $fileService;
39 
40  if (null === $language) {
41  $language = $dic->language();
42  }
43  $this->language = $language;
44  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ downloadFromPortfolioPage()

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

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

References ilPCVerification\isInPortfolioPage().

54  {
55  if (ilPCVerification::isInPortfolioPage($a_page, 'crta', (int) $objectId)) {
56  $this->fileService->deliverCertificate((int) $userId, (int) $objectId);
57  }
58 
59  throw new ilException($this->language->txt('permission_denied'));
60  }
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
+ Here is the call graph for this function:

Field Documentation

◆ $dic

ilObjPersistentCertificateVerificationGUI::$dic
private

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

Referenced by __construct().

◆ $fileService

ilObjPersistentCertificateVerificationGUI::$fileService
private

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

Referenced by __construct().

◆ $language

ilObjPersistentCertificateVerificationGUI::$language
private

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

Referenced by __construct().


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